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

Unified Diff: src/messages.js

Issue 1070633002: [strong] Implement static restrictions on binding/assignment to 'undefined' identifier. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: improve tests (rebase, only undefined.js has changed) 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 72637fb76e6abadbb214a41e07c3349c26b8ec6c..a2d7ac4e056f899d3834158cf78025b74e8fa1ef 100644
--- a/src/messages.js
+++ b/src/messages.js
@@ -166,6 +166,7 @@ var kMessages = {
strict_caller: ["Illegal access to a strict mode caller function."],
strong_ellision: ["In strong mode, arrays with holes are deprecated, use maps instead"],
strong_arguments: ["In strong mode, 'arguments' is deprecated, use '...args' instead"],
+ strong_undefined: ["In strong mode, binding or assigning to 'undefined' is deprecated"],
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"],
« no previous file with comments | « src/ast-value-factory.h ('k') | src/parser.h » ('j') | test/mjsunit/strong/undefined.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698