Bug 753657 (part 3): Remove the remaining parts of TreeContextFlags. r=luke.

This commit is contained in:
Nicholas Nethercote
2012-05-15 00:03:39 -07:00
parent 094f6cbfcb
commit 9e310edcf1
12 changed files with 198 additions and 151 deletions

View File

@@ -157,8 +157,9 @@ frontend::CompileScript(JSContext *cx, JSObject *scopeChain, StackFrame *callerF
/* If this is a direct call to eval, inherit the caller's strictness. */
if (callerFrame &&
callerFrame->isScriptFrame() &&
callerFrame->script()->strictModeCode) {
bce.sc->flags |= TCF_STRICT_MODE_CODE;
callerFrame->script()->strictModeCode)
{
bce.sc->setInStrictMode();
tokenStream.setStrictMode();
}