mirror of https://github.com/tc39/test262.git
Merge pull request #180 from smikes/178-generator-super
add () to super call
This commit is contained in:
commit
1b04b7db08
|
@ -12,6 +12,6 @@ negative: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var obj = {
|
var obj = {
|
||||||
*foo(a = super) {
|
*foo(a = super()) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -13,6 +13,6 @@ negative: SyntaxError
|
||||||
|
|
||||||
var obj = {
|
var obj = {
|
||||||
*foo(a) {
|
*foo(a) {
|
||||||
super;
|
super();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue