mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Unwrap the target before checking for callability, so that wrappers don't wrongly appear to be callable. r=orange
This commit is contained in:
parent
e5fd6c565c
commit
23c30a7beb
@ -2575,7 +2575,7 @@ fun_bind(JSContext *cx, uintN argc, Value *vp)
|
||||
return false;
|
||||
|
||||
/* Step 2. */
|
||||
if (!target->isCallable()) {
|
||||
if (!target->wrappedObject(cx)->isCallable()) {
|
||||
if (JSString *str = js_ValueToString(cx, vp[1])) {
|
||||
if (const char *bytes = js_GetStringBytes(cx, str)) {
|
||||
JS_ReportErrorNumber(cx, js_GetErrorMessage, NULL,
|
||||
|
Loading…
Reference in New Issue
Block a user