Bug 469621 - Protect the new scope object from garbage collection. r=crowder

This commit is contained in:
Blake Kaplan
2008-12-15 16:42:40 -08:00
parent 638ddb99a5
commit e22778453f

View File

@@ -1311,6 +1311,7 @@ obj_eval(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
ok = JS_FALSE;
goto out;
}
argv[1] = OBJECT_TO_JSVAL(scopeobj);
}
/* Ensure we compile this eval with the right object in the scope chain. */