Bug 927655: Make SpiderMonkey's GDB pretty-printer tests call JS_Init, as required. DONTBUILD r=sfink

This commit is contained in:
Jim Blandy 2013-10-17 13:42:55 -07:00
parent 05461608b2
commit 319c60c599

View File

@ -59,6 +59,7 @@ GDBFragment *GDBFragment::allFragments = nullptr;
int
main (int argc, const char **argv)
{
if (!JS_Init()) return 1;
JSRuntime *runtime = checkPtr(JS_NewRuntime(1024 * 1024, JS_USE_HELPER_THREADS));
JS_SetGCParameter(runtime, JSGC_MAX_BYTES, 0xffffffff);
JS_SetNativeStackQuota(runtime, 5000000);