| Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface2.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface2.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface2.cpp
|
| index ce7adbcb81c205239bfa09aa8e5b213622d0299d..562573a47fdf665f43345a6df5da3bd2b987bcec 100644
|
| --- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface2.cpp
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface2.cpp
|
| @@ -332,7 +332,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;
|
|
|