| Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceGarbageCollected.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceGarbageCollected.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceGarbageCollected.cpp
|
| index f84cc268725d9a0769e922096c3ed40d85e2adbb..d3c001953e577bb8bc50dbf6f3259bbf6c052e72 100644
|
| --- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceGarbageCollected.cpp
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceGarbageCollected.cpp
|
| @@ -184,7 +184,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;
|
|
|