| Index: third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp b/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp
|
| index 4e063d288c8ee728ed75fa7058ae0ffbc6c7a106..745cd2580a6f384846d5350b3dc2fcc45dd53f9c 100644
|
| --- a/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp
|
| @@ -581,12 +581,12 @@ static void voidMethodVoidCallbackFunctionModulesArgMethod(const v8::FunctionCal
|
| }
|
|
|
| VoidCallbackFunctionModules* arg;
|
| - if (!info[0]->IsObject() || !v8::Local<v8::Object>::Cast(info[0])->IsCallable()) {
|
| + if (!(info[0]->IsObject() && v8::Local<v8::Object>::Cast(info[0])->IsCallable())) {
|
| V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::failedToExecute("voidMethodVoidCallbackFunctionModulesArg", "TestInterface5", "The callback provided as parameter 1 is not a function."));
|
|
|
| return;
|
| }
|
| - arg = VoidCallbackFunctionModules::create(ScriptState::current(info.GetIsolate()), v8::Local<v8::Function>::Cast(info[0]));
|
| + arg = VoidCallbackFunctionModules::create(ScriptState::current(info.GetIsolate()), info[0]);
|
|
|
| impl->voidMethodVoidCallbackFunctionModulesArg(arg);
|
| }
|
| @@ -663,7 +663,7 @@ static void forEachMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
|
|
| ScriptValue callback;
|
| ScriptValue thisArg;
|
| - if (!info[0]->IsObject() || !v8::Local<v8::Object>::Cast(info[0])->IsCallable()) {
|
| + if (!(info[0]->IsObject() && v8::Local<v8::Object>::Cast(info[0])->IsCallable())) {
|
| exceptionState.throwTypeError("The callback provided as parameter 1 is not a function.");
|
|
|
| return;
|
|
|