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'
22 lines
426 B
JavaScript
22 lines
426 B
JavaScript
// Copyright 2015 Cubane Canada, Inc. All rights reserved.
|
|
// See LICENSE for details.
|
|
|
|
/*---
|
|
info: >
|
|
GeneratorMethod early SyntaxError when lexical declaration
|
|
inside generator shadows parameter name
|
|
features: [generators]
|
|
es6id: 14.4.1
|
|
author: Sam Mikes
|
|
description: GeneratorMethod error with lexical shadowing
|
|
negative:
|
|
phase: early
|
|
type: SyntaxError
|
|
---*/
|
|
|
|
var obj = {
|
|
*foo(a) {
|
|
const a = 3;
|
|
}
|
|
};
|