mirror of
https://github.com/tc39/test262.git
synced 2025-05-22 15:50:39 +02:00
Authored via the following command: $ find test -type f -print0 | \ xargs -0 sed \ -i 's/^\(\s*\)negative:\s*SyntaxError\s*$/\1negative:\n\1 phase: early\n\1 type: SyntaxError/g'
21 lines
405 B
JavaScript
21 lines
405 B
JavaScript
// Copyright 2015 Cubane Canada, Inc. All rights reserved.
|
|
// See LICENSE for details.
|
|
|
|
/*---
|
|
info: >
|
|
GeneratorMethod early SyntaxError when super is called
|
|
directly inside generator args
|
|
features: [generators]
|
|
es6id: 14.4.1
|
|
author: Sam Mikes
|
|
description: GeneratorMethod error if HasDirectSuper in args
|
|
negative:
|
|
phase: early
|
|
type: SyntaxError
|
|
---*/
|
|
|
|
var obj = {
|
|
*foo(a = super()) {
|
|
}
|
|
};
|