Verify that property name can be bound to in short-hand object pattern properties

Issue #221
This commit is contained in:
Marijn Haverbeke
2015-03-19 14:05:08 +01:00
parent a45172e044
commit 9673146cc1
2 changed files with 8 additions and 4 deletions

View File

@@ -15508,3 +15508,5 @@ testFail("'use strict'; [...eval] = arr", "Assigning to eval in strict mode (1:1
testFail("'use strict'; ({eval = defValue} = obj)", "Assigning to eval in strict mode (1:16)", {ecmaVersion: 6});
testFail("[...eval] = arr", "Assigning to eval in strict mode (1:4)", {ecmaVersion: 6, sourceType: "module"});
testFail("function* y({yield}) {}", "Binding yield (1:13)", {ecmaVersion: 6});