Index: test/cctest/test-parsing.cc |
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc |
index 4d14da46041066dd7f72c096aba8062810aca9fc..e10feab72c747e8822d1deb5eedaa9da2ff48594 100644 |
--- a/test/cctest/test-parsing.cc |
+++ b/test/cctest/test-parsing.cc |
@@ -1104,8 +1104,11 @@ TEST(ScopeUsesArgumentsSuperThis) { |
DCHECK_NOT_NULL(scope); |
DCHECK_NULL(scope->sibling()); |
} |
- CHECK_EQ((source_data[i].expected & ARGUMENTS) != 0, |
- scope->uses_arguments()); |
+ // Arrows themselves never get an arguments object. |
+ if ((source_data[i].expected & ARGUMENTS) != 0 && |
+ !scope->is_arrow_scope()) { |
+ CHECK_NOT_NULL(scope->arguments()); |
+ } |
CHECK_EQ((source_data[i].expected & SUPER_PROPERTY) != 0, |
scope->uses_super_property()); |
if ((source_data[i].expected & THIS) != 0) { |