diff options
Diffstat (limited to 'Source/JavaScriptCore/runtime/JSBoundFunction.cpp')
-rw-r--r-- | Source/JavaScriptCore/runtime/JSBoundFunction.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/Source/JavaScriptCore/runtime/JSBoundFunction.cpp b/Source/JavaScriptCore/runtime/JSBoundFunction.cpp index 08d6831c0..3815c144e 100644 --- a/Source/JavaScriptCore/runtime/JSBoundFunction.cpp +++ b/Source/JavaScriptCore/runtime/JSBoundFunction.cpp @@ -89,14 +89,9 @@ JSBoundFunction* JSBoundFunction::create(ExecState* exec, JSGlobalObject* global return function; } -bool JSBoundFunction::hasInstance(JSObject* object, ExecState* exec, JSValue value, JSValue) +bool JSBoundFunction::customHasInstance(JSObject* object, ExecState* exec, JSValue value) { - JSBoundFunction* thisObject = jsCast<JSBoundFunction*>(object); - // FIXME: our instanceof implementation will have already (incorrectly) performed - // a [[Get]] of .prototype from the bound function object, which is incorrect! - // https://bugs.webkit.org/show_bug.cgi?id=68656 - JSValue proto = thisObject->m_targetFunction->get(exec, exec->propertyNames().prototype); - return thisObject->m_targetFunction->methodTable()->hasInstance(thisObject->m_targetFunction.get(), exec, value, proto); + return jsCast<JSBoundFunction*>(object)->m_targetFunction->hasInstance(exec, value); } JSBoundFunction::JSBoundFunction(ExecState* exec, JSGlobalObject* globalObject, Structure* structure, JSObject* targetFunction, JSValue boundThis, JSValue boundArgs) |