| Index: Source/bindings/v8/custom/V8ElementCustom.cpp
|
| diff --git a/Source/bindings/v8/custom/V8ElementCustom.cpp b/Source/bindings/v8/custom/V8ElementCustom.cpp
|
| index 0aad602df30789e305f9ee4523acf6e7d58456d2..c056c7b2f85a944e457b683cebcf9ee5a8b6abc9 100644
|
| --- a/Source/bindings/v8/custom/V8ElementCustom.cpp
|
| +++ b/Source/bindings/v8/custom/V8ElementCustom.cpp
|
| @@ -164,6 +164,7 @@ void animate6Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| void V8Element::animateMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| v8::Isolate* isolate = info.GetIsolate();
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "animate", "Element", info.Holder(), isolate);
|
| // AnimationPlayer animate(
|
| // (AnimationEffect or sequence<Dictionary>)? effect,
|
| // optional (double or Dictionary) timing);
|
| @@ -229,11 +230,10 @@ void V8Element::animateMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& i
|
| return;
|
| }
|
| break;
|
| - }
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "animate", "Element", info.Holder(), isolate);
|
| - if (UNLIKELY(info.Length() < 1)) {
|
| - throwArityTypeError(exceptionState, 1, info.Length());
|
| + default:
|
| + throwArityTypeError(exceptionState, "[1]", info.Length());
|
| return;
|
| + break;
|
| }
|
| exceptionState.throwTypeError("No function was found that matched the signature provided.");
|
| exceptionState.throwIfNeeded();
|
|
|