Index: test/cctest/test-parsing.cc |
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc |
index d99b2b86aea2d96c1bd16c92d05c7d1f3d5d468d..1cb0f9d681acdfc086e5f73d43aa579dd6c4dac1 100644 |
--- a/test/cctest/test-parsing.cc |
+++ b/test/cctest/test-parsing.cc |
@@ -961,7 +961,6 @@ TEST(ScopeUsesArgumentsSuperThis) { |
SUPER_PROPERTY = 1 << 1, |
THIS = 1 << 2, |
INNER_ARGUMENTS = 1 << 3, |
- INNER_SUPER_PROPERTY = 1 << 4, |
}; |
static const struct { |
@@ -977,7 +976,7 @@ TEST(ScopeUsesArgumentsSuperThis) { |
{"return this + arguments[0] + super.x", |
ARGUMENTS | SUPER_PROPERTY | THIS}, |
{"return x => this + x", THIS}, |
- {"return x => super.f() + x", INNER_SUPER_PROPERTY}, |
+ {"return x => super.f() + x", SUPER_PROPERTY}, |
{"this.foo = 42;", THIS}, |
{"this.foo();", THIS}, |
{"if (foo()) { this.f() }", THIS}, |
@@ -1003,10 +1002,9 @@ TEST(ScopeUsesArgumentsSuperThis) { |
{"\"use strict\"; while (true) { let x; this, arguments; }", |
INNER_ARGUMENTS | THIS}, |
{"\"use strict\"; while (true) { let x; this, super.f(), arguments; }", |
- INNER_ARGUMENTS | INNER_SUPER_PROPERTY | THIS}, |
+ INNER_ARGUMENTS | SUPER_PROPERTY | THIS}, |
{"\"use strict\"; if (foo()) { let x; this.f() }", THIS}, |
- {"\"use strict\"; if (foo()) { let x; super.f() }", |
- INNER_SUPER_PROPERTY}, |
+ {"\"use strict\"; if (foo()) { let x; super.f() }", SUPER_PROPERTY}, |
{"\"use strict\"; if (1) {" |
" let x; return { m() { return this + super.m() + arguments } }" |
"}", |
@@ -1027,7 +1025,6 @@ TEST(ScopeUsesArgumentsSuperThis) { |
for (unsigned i = 0; i < arraysize(source_data); ++i) { |
// Super property is only allowed in constructor and method. |
if (((source_data[i].expected & SUPER_PROPERTY) || |
- (source_data[i].expected & INNER_SUPER_PROPERTY) || |
(source_data[i].expected == NONE)) && j != 2) { |
continue; |
} |
@@ -1075,8 +1072,6 @@ TEST(ScopeUsesArgumentsSuperThis) { |
} |
CHECK_EQ((source_data[i].expected & INNER_ARGUMENTS) != 0, |
scope->inner_uses_arguments()); |
- CHECK_EQ((source_data[i].expected & INNER_SUPER_PROPERTY) != 0, |
- scope->inner_uses_super_property()); |
} |
} |
} |