Bug 752816 (part 1) - Remove TCF_COMPILE_FOR_EVAL from TreeContextFlags. r=luke.

This commit is contained in:
Nicholas Nethercote
2012-05-14 18:00:15 -07:00
parent 2b08390d55
commit 913b736539
3 changed files with 9 additions and 13 deletions

View File

@@ -111,8 +111,7 @@ frontend::CompileScript(JSContext *cx, JSObject *scopeChain, StackFrame *callerF
ParseNode *pn;
bool inDirectivePrologue;
JS_ASSERT(!(tcflags & ~(TCF_COMPILE_N_GO | TCF_NO_SCRIPT_RVAL | TCF_COMPILE_FOR_EVAL
| TCF_NEED_SCRIPT_GLOBAL)));
JS_ASSERT(!(tcflags & ~(TCF_COMPILE_N_GO | TCF_NO_SCRIPT_RVAL | TCF_NEED_SCRIPT_GLOBAL)));
/*
* The scripted callerFrame can only be given for compile-and-go scripts