Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index a2cf7142bc8e940a458faf118d19fdada04d104e..a03b7411c3cdf7b9cef5722a393a726ff62b5905 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -1413,7 +1413,7 @@ void ObjectTemplate::SetInternalFieldCount(int value) { |
ScriptData* ScriptData::PreCompile(const char* input, int length) { |
i::Utf8ToUC16CharacterStream stream( |
reinterpret_cast<const unsigned char*>(input), length); |
- return i::ParserApi::PreParse(&stream, NULL, i::FLAG_harmony_block_scoping); |
+ return i::ParserApi::PreParse(&stream, NULL, i::FLAG_harmony_scoping); |
} |
@@ -1422,10 +1422,10 @@ ScriptData* ScriptData::PreCompile(v8::Handle<String> source) { |
if (str->IsExternalTwoByteString()) { |
i::ExternalTwoByteStringUC16CharacterStream stream( |
i::Handle<i::ExternalTwoByteString>::cast(str), 0, str->length()); |
- return i::ParserApi::PreParse(&stream, NULL, i::FLAG_harmony_block_scoping); |
+ return i::ParserApi::PreParse(&stream, NULL, i::FLAG_harmony_scoping); |
} else { |
i::GenericStringUC16CharacterStream stream(str, 0, str->length()); |
- return i::ParserApi::PreParse(&stream, NULL, i::FLAG_harmony_block_scoping); |
+ return i::ParserApi::PreParse(&stream, NULL, i::FLAG_harmony_scoping); |
} |
} |