Skip to content

Commit

Permalink
Group strict mode let keyword tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kaicataldo authored and marijnh committed Jun 20, 2019
1 parent 0b5f7a7 commit 20573f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/tests-harmony.js
Expand Up @@ -13403,7 +13403,6 @@ test("var let = 1", {
]
}, {ecmaVersion: 6})

testFail("'use strict'; let + 1", "The keyword 'let' is reserved (1:14)", {ecmaVersion: 6})

testFail("let let", "let is disallowed as a lexically bound name (1:4)", {ecmaVersion: 6})

Expand All @@ -13417,6 +13416,8 @@ testFail("let [let] = [];", "let is disallowed as a lexically bound name (1:5)",

testFail("const [let] = [];", "let is disallowed as a lexically bound name (1:7)", {ecmaVersion: 6})

testFail("'use strict'; let + 1", "The keyword 'let' is reserved (1:14)", {ecmaVersion: 6})

testFail("'use strict'; let let", "The keyword 'let' is reserved (1:18)", {ecmaVersion: 6})

testFail("'use strict'; const let", "The keyword 'let' is reserved (1:20)", {ecmaVersion: 6})
Expand Down

0 comments on commit 20573f3

Please sign in to comment.