mirror of
https://github.com/tc39/test262.git
synced 2025-07-31 01:44:54 +02:00
SuperCall includes parenthesis. Fixes gh-1183 (#2754)
This commit is contained in:
parent
1c22e0b2f2
commit
6bfcf4237a
@ -4,7 +4,7 @@
|
|||||||
/*---
|
/*---
|
||||||
description: >
|
description: >
|
||||||
It is a Syntax Error if HasDirectSuper of MethodDefinition is true.
|
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:
|
negative:
|
||||||
phase: parse
|
phase: parse
|
||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
@ -14,6 +14,6 @@ $DONOTEVALUATE();
|
|||||||
|
|
||||||
({
|
({
|
||||||
method() {
|
method() {
|
||||||
super;
|
super();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
/*---
|
/*---
|
||||||
description: >
|
description: >
|
||||||
It is a Syntax Error if HasDirectSuper of MethodDefinition is true.
|
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:
|
negative:
|
||||||
phase: parse
|
phase: parse
|
||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
@ -13,5 +13,5 @@ negative:
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
({
|
({
|
||||||
method(param = super) {}
|
method(param = super()) {}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user