Bug 897322 - Allow callers to manually fire OnNewGlobalObject when bootstrapping is complete. r=luke

This commit is contained in:
Bobby Holley
2013-08-01 18:38:47 -07:00
parent b13c7b91ba
commit 2a9cdf6f89
24 changed files with 99 additions and 31 deletions

View File

@@ -43,7 +43,7 @@ BEGIN_TEST(testChromeBuffer)
{
JS_SetTrustedPrincipals(rt, &system_principals);
trusted_glob = JS_NewGlobalObject(cx, &global_class, &system_principals);
trusted_glob = JS_NewGlobalObject(cx, &global_class, &system_principals, JS::FireOnNewGlobalHook);
CHECK(trusted_glob);
if (!JS_AddNamedObjectRoot(cx, &trusted_glob, "trusted-global"))