Use a less complicated function to create the parent object. bug 340727, r=igor

This commit is contained in:
mrbkap%gmail.com 2006-06-09 18:40:56 +00:00
parent 30794851bb
commit 0e79e0fd16

View File

@ -5024,8 +5024,7 @@ interrupt:
ok = JS_FALSE; ok = JS_FALSE;
goto out; goto out;
} }
parent = js_ConstructObject(cx, &js_ObjectClass, NULL, obj2, parent = js_NewObject(cx, &js_ObjectClass, NULL, obj2);
0, NULL);
if (!parent) { if (!parent) {
ok = JS_FALSE; ok = JS_FALSE;
goto out; goto out;