| Index: Source/bindings/core/v8/custom/V8NodeCustom.cpp
|
| diff --git a/Source/bindings/core/v8/custom/V8NodeCustom.cpp b/Source/bindings/core/v8/custom/V8NodeCustom.cpp
|
| index cdd3cab222ab30541d81aa14281e3f8c3ebf974c..80ad75a95086a945f167ca65eb3e56db4ba1d230 100644
|
| --- a/Source/bindings/core/v8/custom/V8NodeCustom.cpp
|
| +++ b/Source/bindings/core/v8/custom/V8NodeCustom.cpp
|
| @@ -108,6 +108,10 @@ void V8Node::removeChildMethodCustom(const v8::FunctionCallbackInfo<v8::Value>&
|
| void V8Node::appendChildMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| ExceptionState exceptionState(ExceptionState::ExecutionContext, "appendChild", "Node", info.Holder(), info.GetIsolate());
|
| + if (UNLIKELY(info.Length() < 1)) {
|
| + throwMinimumArityTypeErrorForMethod("appendChild", "Node", 1, info.Length(), info.GetIsolate());
|
| + return;
|
| + }
|
| Node* impl = V8Node::toNative(info.Holder());
|
| CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
|
| Node* newChild;
|
|
|