blob: 7039c8bc46630432c4b4a2140147bac218a67f34 [file] [log] [blame]
// 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: parse
type: SyntaxError
---*/
$DONOTEVALUATE();
var obj = {
*foo(a) {
let a = 3;
}
};