Index: src/preparser.h |
diff --git a/src/preparser.h b/src/preparser.h |
index a93c1e5e7b75438f63f0d3612c73a567d19e7c0d..6724435722024481a92e84dabbb50bac2e394fa2 100644 |
--- a/src/preparser.h |
+++ b/src/preparser.h |
@@ -1435,7 +1435,7 @@ class PreParser : public ParserBase<PreParserTraits> { |
// captured the syntax error), and false if a stack-overflow happened |
// during parsing. |
PreParseResult PreParseProgram() { |
- PreParserScope scope(scope_, GLOBAL_SCOPE); |
+ PreParserScope scope(scope_, SCRIPT_SCOPE); |
PreParserFactory factory(NULL); |
FunctionState top_scope(&function_state_, &scope_, &scope, &factory); |
bool ok = true; |