Bug 567577 - new Math.sin is NaN, not an object, in interpreter only. r=Waldo.

This commit is contained in:
David Anderson
2010-06-28 14:49:12 -05:00
parent ba40f61ee8
commit 416b7597a3
5 changed files with 10 additions and 7 deletions

View File

@@ -4871,7 +4871,7 @@ JS_New(JSContext *cx, JSObject *ctor, uintN argc, jsval *argv)
vp[1] = JSVAL_NULL;
memcpy(vp + 2, argv, argc * sizeof(jsval));
JSBool ok = js_InvokeConstructor(cx, args, JS_TRUE);
JSBool ok = js_InvokeConstructor(cx, args);
JSObject *obj = ok ? JSVAL_TO_OBJECT(vp[0]) : NULL;
LAST_FRAME_CHECKS(cx, ok);