SuperCall includes parenthesis. Fixes gh-1183 (#2754)

This commit is contained in:
Rick Waldron 2020-09-04 14:42:43 -04:00 committed by GitHub
parent 1c22e0b2f2
commit 6bfcf4237a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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();
}
});

View File

@ -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()) {}
});