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

Unified Diff: src/messages.js

Issue 1021213002: [strong] Less pleading error messages (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/messages.js
diff --git a/src/messages.js b/src/messages.js
index a3a2dd95df9e33206eff7af7e021e21fc17cd501..12170c463a54cfca49b984226a5e07964ed57f32 100644
--- a/src/messages.js
+++ b/src/messages.js
@@ -164,19 +164,19 @@ var kMessages = {
strict_cannot_assign: ["Cannot assign to read only '", "%0", "' in strict mode"],
strict_poison_pill: ["'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them"],
strict_caller: ["Illegal access to a strict mode caller function."],
- strong_ellision: ["Please don't use arrays with holes in strong mode, use maps instead"],
- strong_arguments: ["Please don't use 'arguments' in strong mode, use '...args' instead"],
- strong_equal: ["Please don't use '==' or '!=' in strong mode, use '===' or '!==' instead"],
- strong_delete: ["Please don't use 'delete' in strong mode, use maps or sets instead"],
- strong_var: ["Please don't use 'var' in strong mode, use 'let' or 'const' instead"],
- strong_for_in: ["Please don't use 'for'-'in' loops in strong mode, use 'for'-'of' instead"],
- strong_empty: ["Please don't use empty sub-statements in strong mode, make them explicit with '{}' instead"],
- strong_use_before_declaration: ["Please declare variable '", "%0", "' before use in strong mode"],
- strong_super_call_missing: ["Please always invoke the super constructor in subclasses in strong mode"],
- strong_super_call_duplicate: ["Please don't invoke the super constructor multiple times in strong mode"],
- strong_super_call_nested: ["Please don't invoke the super constructor nested inside another statement or expression in strong mode"],
- strong_constructor_return_value: ["Please do not return a value from a constructor in strong mode"],
- strong_constructor_return_misplaced: ["Please do not return from a constructor before its super constructor invocation in strong mode"],
+ 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_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"],
+ strong_for_in: ["In strong mode, 'for'-'in' loops are deprecated, use 'for'-'of' instead"],
+ strong_empty: ["In strong mode, empty sub-statements are deprecated, make them explicit with '{}' instead"],
+ strong_use_before_declaration: ["In strong mode, declaring variable '", "%0", "' before its use is required"],
+ strong_super_call_missing: ["In strong mode, invoking the super constructor in a subclass is required"],
+ strong_super_call_duplicate: ["In strong mode, invoking the super constructor multiple times is deprecated"],
+ strong_super_call_nested: ["In strong mode, invoking the super constructor nested inside another statement or expression is deprecated"],
+ strong_constructor_return_value: ["In strong mode, returning a value from a constructor is deprecated"],
+ strong_constructor_return_misplaced: ["In strong mode, returning from a constructor before its super constructor invocation is deprecated"],
sloppy_lexical: ["Block-scoped declarations (let, const, function, class) not yet supported outside strict mode"],
malformed_arrow_function_parameter_list: ["Malformed arrow function parameter list"],
generator_poison_pill: ["'caller' and 'arguments' properties may not be accessed on generator functions."],
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698