Inherit context options from parent context when using evalcx in the shell (r=brendan, no bug).

This commit is contained in:
Andreas Gal 2008-12-05 18:15:04 -08:00
parent 362036b89e
commit d7a200c5a8

View File

@ -2505,6 +2505,7 @@ EvalInContext(JSContext *cx, JSObject *obj, uintN argc, jsval *argv,
JS_ReportOutOfMemory(cx);
return JS_FALSE;
}
JS_SetOptions(scx, JS_GetOptions(cx));
#ifdef JS_THREADSAFE
JS_BeginRequest(scx);