mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 00:55:37 +00:00
Use a less complicated function to create the parent object. bug 340727, r=igor
This commit is contained in:
parent
30794851bb
commit
0e79e0fd16
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user