Follow-up for bug 568966. js_Call is never called with JSFRAME_CONSTRUCT.

This commit is contained in:
Andreas Gal 2010-05-29 19:43:24 -07:00
parent 3026562007
commit 336333df60

View File

@ -5632,7 +5632,7 @@ js_Call(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
return ok;
}
#endif
js_ReportIsNotFunction(cx, &argv[-2], js_GetTopStackFrame(cx)->flags);
js_ReportIsNotFunction(cx, &argv[-2], 0);
return JS_FALSE;
}
return clasp->call(cx, obj, argc, argv, rval);