| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 1ad70e8dbcba5c6943118a72807d52bc875660e6..73b4593ff6bc0547a74c4fa906a9a5da236c2d42 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -1413,7 +1413,8 @@ 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_scoping);
|
| + return i::ParserApi::PreParse(&stream, NULL, i::FLAG_harmony_scoping
|
| + ? i::kHarmonyScoping : i::kNoParsingFlags);
|
| }
|
|
|
|
|
| @@ -1422,10 +1423,12 @@ 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_scoping);
|
| + return i::ParserApi::PreParse(&stream, NULL, i::FLAG_harmony_scoping
|
| + ? i::kHarmonyScoping : i::kNoParsingFlags);
|
| } else {
|
| i::GenericStringUC16CharacterStream stream(str, 0, str->length());
|
| - return i::ParserApi::PreParse(&stream, NULL, i::FLAG_harmony_scoping);
|
| + return i::ParserApi::PreParse(&stream, NULL, i::FLAG_harmony_scoping
|
| + ? i::kHarmonyScoping : i::kNoParsingFlags);
|
| }
|
| }
|
|
|
|
|