mirror of https://github.com/tc39/test262.git
SuperCall includes parenthesis. Fixes gh-1183 (#2754)
This commit is contained in:
parent
1c22e0b2f2
commit
6bfcf4237a
|
@ -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();
|
||||
}
|
||||
});
|
||||
|
|
|
@ -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()) {}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue