| Index: test/cctest/test-parsing.cc
|
| diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc
|
| index 656458962a42094ecb7ca2a2985f7046369a6d7f..5b916d1068d4461f7c459e002d8d99433581336d 100644
|
| --- a/test/cctest/test-parsing.cc
|
| +++ b/test/cctest/test-parsing.cc
|
| @@ -1120,7 +1120,7 @@ TEST(ScopeUsesArgumentsSuperThis) {
|
| CHECK(i::Scope::Analyze(&info));
|
| CHECK(info.literal() != NULL);
|
|
|
| - i::Scope* script_scope = info.literal()->scope();
|
| + i::DeclarationScope* script_scope = info.literal()->scope();
|
| CHECK(script_scope->is_script_scope());
|
|
|
| i::Scope* scope = script_scope->inner_scope();
|
| @@ -1134,8 +1134,8 @@ TEST(ScopeUsesArgumentsSuperThis) {
|
| }
|
| // Arrows themselves never get an arguments object.
|
| if ((source_data[i].expected & ARGUMENTS) != 0 &&
|
| - !scope->is_arrow_scope()) {
|
| - CHECK_NOT_NULL(scope->arguments());
|
| + !scope->AsDeclarationScope()->is_arrow_scope()) {
|
| + CHECK_NOT_NULL(scope->AsDeclarationScope()->arguments());
|
| }
|
| CHECK_EQ((source_data[i].expected & SUPER_PROPERTY) != 0,
|
| scope->uses_super_property());
|
| @@ -5938,7 +5938,7 @@ TEST(ModuleParsingInternals) {
|
| CHECK(parser.Parse(&info));
|
| CHECK(i::Compiler::Analyze(&info));
|
| i::FunctionLiteral* func = info.literal();
|
| - i::Scope* module_scope = func->scope();
|
| + i::DeclarationScope* module_scope = func->scope();
|
| i::Scope* outer_scope = module_scope->outer_scope();
|
| CHECK(outer_scope->is_script_scope());
|
| CHECK_NULL(outer_scope->outer_scope());
|
|
|