| Index: test/cctest/test-parsing.cc
|
| diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc
|
| index c2bde79b13b28a4333c95f781b3eeb4fd27a5d6f..4029484111cda555762e61bdd6336d35f2a0f594 100755
|
| --- a/test/cctest/test-parsing.cc
|
| +++ b/test/cctest/test-parsing.cc
|
| @@ -860,11 +860,13 @@ TEST(ScopePositions) {
|
| i::Handle<i::String> source(
|
| FACTORY->NewStringFromAscii(i::CStrVector(program.start())));
|
| i::Handle<i::Script> script = FACTORY->NewScript(source);
|
| + bool harmony_scoping = i::FLAG_harmony_scoping;
|
| + i::FLAG_harmony_scoping = true;
|
| i::Parser parser(script, false, NULL, NULL);
|
| - parser.SetHarmonyScoping(true);
|
| i::FunctionLiteral* function =
|
| parser.ParseProgram(source, true, source_data[i].language_mode);
|
| - ASSERT(function != NULL);
|
| + i::FLAG_harmony_scoping = harmony_scoping;
|
| + CHECK(function != NULL);
|
|
|
| // Check scope types and positions.
|
| i::Scope* scope = function->scope();
|
|
|