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

Unified Diff: src/messages.js

Issue 1084983002: [strong] Implement static restrictions on switch statement (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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
Index: src/messages.js
diff --git a/src/messages.js b/src/messages.js
index 5900ed18e2a24cc3ecbf91f943de22f7bd1ba6ba..46193a121c9f36cec0d7d299247574123d883e4d 100644
--- a/src/messages.js
+++ b/src/messages.js
@@ -169,6 +169,7 @@ var kMessages = {
strong_arguments: ["In strong mode, 'arguments' is deprecated, use '...args' instead"],
strong_undefined: ["In strong mode, binding or assigning to 'undefined' is deprecated"],
strong_direct_eval: ["In strong mode, direct calls to eval are deprecated"],
+ strong_unterminated_switch: ["In strong mode, each switch statement list must be terminated by break, continue, return or throw"],
rossberg 2015/04/14 20:19:49 Nit: strong_switch_fallthrough "In strong mode, s
conradw 2015/04/15 11:40:03 Done.
strong_equal: ["In strong mode, '==' and '!=' are deprecated, use '===' and '!==' instead"],
strong_delete: ["In strong mode, 'delete' is deprecated, use maps or sets instead"],
strong_var: ["In strong mode, 'var' is deprecated, use 'let' or 'const' instead"],

Powered by Google App Engine
This is Rietveld 408576698