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

This commit is contained in:
Shu-yu Guo 2013-11-12 10:51:11 -08:00
parent 2e736ecad5
commit 3c10bb18f3

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