Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Unified Diff: test/mjsunit/messages.js

Issue 1371263003: Prohibit let in lexical bindings (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: messages test Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mjsunit/harmony/block-let-contextual-sloppy.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « test/mjsunit/harmony/block-let-contextual-sloppy.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698