Bug 934799 - Part 2: Disable lazy parsing for JSD. (r=sfink)

This commit is contained in:
Shu-yu Guo 2013-11-11 14:18:35 -08:00
parent 76733b4b96
commit 02e48f74ed

View File

@ -141,7 +141,9 @@ CanLazilyParse(ExclusiveContext *cx, const ReadOnlyCompileOptions &options)
{
return options.canLazilyParse &&
options.compileAndGo &&
options.sourcePolicy == CompileOptions::SAVE_SOURCE;
options.sourcePolicy == CompileOptions::SAVE_SOURCE &&
!(cx->compartment()->debugMode() &&
cx->compartment()->runtimeFromAnyThread()->debugHooks.newScriptHook);
}
void