From 6bfcf4237aa8d9098e895191e5789353c5cf2d96 Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Fri, 4 Sep 2020 14:42:43 -0400 Subject: [PATCH] SuperCall includes parenthesis. Fixes gh-1183 (#2754) --- .../object/method-definition/name-super-call-body.js | 4 ++-- .../object/method-definition/name-super-call-param.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/language/expressions/object/method-definition/name-super-call-body.js b/test/language/expressions/object/method-definition/name-super-call-body.js index b4a69cef83..936c409697 100644 --- a/test/language/expressions/object/method-definition/name-super-call-body.js +++ b/test/language/expressions/object/method-definition/name-super-call-body.js @@ -4,7 +4,7 @@ /*--- description: > It is a Syntax Error if HasDirectSuper of MethodDefinition is true. -es6id: 12.2.5.1 +esid: sec-object-initializer-static-semantics-early-errors negative: phase: parse type: SyntaxError @@ -14,6 +14,6 @@ $DONOTEVALUATE(); ({ method() { - super; + super(); } }); diff --git a/test/language/expressions/object/method-definition/name-super-call-param.js b/test/language/expressions/object/method-definition/name-super-call-param.js index 293435476f..0b9d25d5f6 100644 --- a/test/language/expressions/object/method-definition/name-super-call-param.js +++ b/test/language/expressions/object/method-definition/name-super-call-param.js @@ -4,7 +4,7 @@ /*--- description: > It is a Syntax Error if HasDirectSuper of MethodDefinition is true. -es6id: 12.2.5.1 +esid: sec-object-initializer-static-semantics-early-errors negative: phase: parse type: SyntaxError @@ -13,5 +13,5 @@ negative: $DONOTEVALUATE(); ({ - method(param = super) {} + method(param = super()) {} });