| Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface3.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface3.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface3.cpp
|
| index 1ce1d3f1b01b3061d3e30a45b20ce537407b0a9f..9298bd75c97288fdd1c6eb1626468db2ec92bdd6 100644
|
| --- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface3.cpp
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface3.cpp
|
| @@ -161,7 +161,7 @@ static void forEachMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
|
|
| ScriptValue callback;
|
| ScriptValue thisArg;
|
| - if (!info[0]->IsFunction()) {
|
| + 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;
|
|
|