Index: test/cctest/test-parsing.cc |
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc |
index e6b536771a14ba453d9058e10ea94c8ba6bce8b6..8d52fe5999dab1258e88565cfe3fd3715b2c3d53 100644 |
--- a/test/cctest/test-parsing.cc |
+++ b/test/cctest/test-parsing.cc |
@@ -1027,11 +1027,11 @@ TEST(ScopePositions) { |
parser.set_allow_harmony_scoping(true); |
info.MarkAsGlobal(); |
info.SetLanguageMode(source_data[i].language_mode); |
- i::FunctionLiteral* function = parser.ParseProgram(); |
- CHECK(function != NULL); |
+ parser.Parse(); |
+ CHECK(info.function() != NULL); |
// Check scope types and positions. |
- i::Scope* scope = function->scope(); |
+ i::Scope* scope = info.function()->scope(); |
CHECK(scope->is_global_scope()); |
CHECK_EQ(scope->start_position(), 0); |
CHECK_EQ(scope->end_position(), kProgramSize); |
@@ -1137,7 +1137,8 @@ void TestParserSyncWithFlags(i::Handle<i::String> source, unsigned flags) { |
i::Parser parser(&info); |
SET_PARSER_FLAGS(parser, flags); |
info.MarkAsGlobal(); |
- function = parser.ParseProgram(); |
+ parser.Parse(); |
+ function = info.function(); |
} |
// Check that preparsing fails iff parsing fails. |