Index: test/mjsunit/messages.js |
diff --git a/test/mjsunit/messages.js b/test/mjsunit/messages.js |
index b8c3114d3685574d3236df28f46bc8bfdffb65c4..7d7ca182c57992119bfbb32c4ec62f188aab11fc 100644 |
--- a/test/mjsunit/messages.js |
+++ b/test/mjsunit/messages.js |
@@ -3,7 +3,7 @@ |
// found in the LICENSE file. |
// Flags: --stack-size=100 --harmony --harmony-reflect --harmony-regexps |
-// Flags: --harmony-simd --strong-mode |
+// Flags: --harmony-simd --strong-mode --harmony-sloppy --harmony-sloppy-let |
function test(f, expected, type) { |
try { |
@@ -470,3 +470,8 @@ test(function() { |
test(function() { |
decodeURI("%%"); |
}, "URI malformed", URIError); |
+ |
+// kLetInLexicalBinding |
adamk
2015/10/05 16:30:48
Sorry, this isn't quite what I meant. You should a
|
+test(function() { |
+ eval('let let'); |
+}, "let is disallowed as a lexically bound name", SyntaxError); |