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

Side by Side Diff: src/messages.js

Issue 1130073005: Revert of Migrate error messages, part 10. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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 unified diff | Download patch
« no previous file with comments | « src/messages.cc ('k') | src/objects.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // ------------------------------------------------------------------- 5 // -------------------------------------------------------------------
6 6
7 var $errorToString; 7 var $errorToString;
8 var $formatMessage; 8 var $formatMessage;
9 var $getStackTraceLine; 9 var $getStackTraceLine;
10 var $messageGetPositionInLine; 10 var $messageGetPositionInLine;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 malformed_regexp_flags: ["Invalid regular expression flags"], 63 malformed_regexp_flags: ["Invalid regular expression flags"],
64 unterminated_regexp: ["Invalid regular expression: missing /"], 64 unterminated_regexp: ["Invalid regular expression: missing /"],
65 unterminated_template: ["Unterminated template literal"], 65 unterminated_template: ["Unterminated template literal"],
66 unterminated_template_expr: ["Missing } in template expression"], 66 unterminated_template_expr: ["Missing } in template expression"],
67 unterminated_arg_list: ["missing ) after argument list"], 67 unterminated_arg_list: ["missing ) after argument list"],
68 regexp_flags: ["Cannot supply flags when constructing one Reg Exp from another"], 68 regexp_flags: ["Cannot supply flags when constructing one Reg Exp from another"],
69 multiple_defaults_in_switch: ["More than one default clause in switch statem ent"], 69 multiple_defaults_in_switch: ["More than one default clause in switch statem ent"],
70 newline_after_throw: ["Illegal newline after throw"], 70 newline_after_throw: ["Illegal newline after throw"],
71 label_redeclaration: ["Label '", "%0", "' has already been declared" ], 71 label_redeclaration: ["Label '", "%0", "' has already been declared" ],
72 var_redeclaration: ["Identifier '", "%0", "' has already been decl ared"], 72 var_redeclaration: ["Identifier '", "%0", "' has already been decl ared"],
73 duplicate_template_property: ["Object template has duplicate property '", "% 0", "'"],
73 no_catch_or_finally: ["Missing catch or finally after try"], 74 no_catch_or_finally: ["Missing catch or finally after try"],
74 unknown_label: ["Undefined label '", "%0", "'"], 75 unknown_label: ["Undefined label '", "%0", "'"],
75 uncaught_exception: ["Uncaught ", "%0"], 76 uncaught_exception: ["Uncaught ", "%0"],
76 undefined_method: ["Object ", "%1", " has no method '", "%0", "'" ], 77 undefined_method: ["Object ", "%1", " has no method '", "%0", "'" ],
78 non_object_property_load: ["Cannot read property '", "%0", "' of ", "%1"] ,
77 non_object_property_store: ["Cannot set property '", "%0", "' of ", "%1"], 79 non_object_property_store: ["Cannot set property '", "%0", "' of ", "%1"],
80 illegal_invocation: ["Illegal invocation"],
81 no_setter_in_callback: ["Cannot set property ", "%0", " of ", "%1", " which has only a getter"],
78 value_and_accessor: ["Invalid property. A property cannot both hav e accessors and be writable or have a value, ", "%0"], 82 value_and_accessor: ["Invalid property. A property cannot both hav e accessors and be writable or have a value, ", "%0"],
79 proto_object_or_null: ["Object prototype may only be an Object or nul l: ", "%0"], 83 proto_object_or_null: ["Object prototype may only be an Object or nul l: ", "%0"],
84 non_extensible_proto: ["%0", " is not extensible"],
80 invalid_weakmap_key: ["Invalid value used as weak map key"], 85 invalid_weakmap_key: ["Invalid value used as weak map key"],
81 invalid_weakset_value: ["Invalid value used in weak set"], 86 invalid_weakset_value: ["Invalid value used in weak set"],
87 not_date_object: ["this is not a Date object."],
82 not_a_symbol: ["%0", " is not a symbol"], 88 not_a_symbol: ["%0", " is not a symbol"],
83 // ReferenceError 89 // ReferenceError
84 invalid_lhs_in_assignment: ["Invalid left-hand side in assignment"], 90 invalid_lhs_in_assignment: ["Invalid left-hand side in assignment"],
85 invalid_lhs_in_for: ["Invalid left-hand side in for-loop"], 91 invalid_lhs_in_for: ["Invalid left-hand side in for-loop"],
86 invalid_lhs_in_postfix_op: ["Invalid left-hand side expression in postfix operation"], 92 invalid_lhs_in_postfix_op: ["Invalid left-hand side expression in postfix operation"],
87 invalid_lhs_in_prefix_op: ["Invalid left-hand side expression in prefix o peration"], 93 invalid_lhs_in_prefix_op: ["Invalid left-hand side expression in prefix o peration"],
88 // SyntaxError 94 // SyntaxError
89 not_isvar: ["builtin %IS_VAR: not a variable"], 95 not_isvar: ["builtin %IS_VAR: not a variable"],
90 single_function_literal: ["Single function literal required"], 96 single_function_literal: ["Single function literal required"],
91 invalid_regexp_flags: ["Invalid flags supplied to RegExp constructor '", "%0", "'"], 97 invalid_regexp_flags: ["Invalid flags supplied to RegExp constructor '", "%0", "'"],
92 invalid_regexp: ["Invalid RegExp pattern /", "%0", "/"], 98 invalid_regexp: ["Invalid RegExp pattern /", "%0", "/"],
93 illegal_break: ["Illegal break statement"], 99 illegal_break: ["Illegal break statement"],
94 illegal_continue: ["Illegal continue statement"], 100 illegal_continue: ["Illegal continue statement"],
95 illegal_return: ["Illegal return statement"], 101 illegal_return: ["Illegal return statement"],
96 error_loading_debugger: ["Error loading debugger"], 102 error_loading_debugger: ["Error loading debugger"],
103 circular_structure: ["Converting circular structure to JSON"],
97 array_indexof_not_defined: ["Array.getIndexOf: Argument undefined"], 104 array_indexof_not_defined: ["Array.getIndexOf: Argument undefined"],
105 object_not_extensible: ["Can't add property ", "%0", ", object is not extensible"],
98 illegal_access: ["Illegal access"], 106 illegal_access: ["Illegal access"],
99 static_prototype: ["Classes may not have static property named pr ototype"], 107 static_prototype: ["Classes may not have static property named pr ototype"],
100 strict_mode_with: ["Strict mode code may not include a with state ment"], 108 strict_mode_with: ["Strict mode code may not include a with state ment"],
101 strict_eval_arguments: ["Unexpected eval or arguments in strict mode"] , 109 strict_eval_arguments: ["Unexpected eval or arguments in strict mode"] ,
102 too_many_arguments: ["Too many arguments in function call (only 655 35 allowed)"], 110 too_many_arguments: ["Too many arguments in function call (only 655 35 allowed)"],
103 too_many_parameters: ["Too many parameters in function definition (o nly 65535 allowed)"], 111 too_many_parameters: ["Too many parameters in function definition (o nly 65535 allowed)"],
104 too_many_variables: ["Too many variables declared (only 4194303 all owed)"], 112 too_many_variables: ["Too many variables declared (only 4194303 all owed)"],
105 strict_param_dupe: ["Strict mode function may not have duplicate p arameter names"], 113 strict_param_dupe: ["Strict mode function may not have duplicate p arameter names"],
106 strict_octal_literal: ["Octal literals are not allowed in strict mode ."], 114 strict_octal_literal: ["Octal literals are not allowed in strict mode ."],
107 template_octal_literal: ["Octal literals are not allowed in template st rings."], 115 template_octal_literal: ["Octal literals are not allowed in template st rings."],
108 strict_delete: ["Delete of an unqualified identifier in strict mode."], 116 strict_delete: ["Delete of an unqualified identifier in strict mode."],
117 strict_delete_property: ["Cannot delete property '", "%0", "' of ", "%1 "],
109 strict_function: ["In strict mode code, functions can only be de clared at top level or immediately within another function." ], 118 strict_function: ["In strict mode code, functions can only be de clared at top level or immediately within another function." ],
119 strict_read_only_property: ["Cannot assign to read only property '", "%0", "' of ", "%1"],
120 strict_cannot_assign: ["Cannot assign to read only '", "%0", "' in st rict mode"],
121 restricted_function_properties: ["'caller' and 'arguments' are restricted func tion properties and cannot be accessed in this context."],
122 strict_poison_pill: ["'caller', 'callee', and 'arguments' propertie s may not be accessed on strict mode functions or the arguments objects for call s to them"],
110 strict_caller: ["Illegal access to a strict mode caller functi on."], 123 strict_caller: ["Illegal access to a strict mode caller functi on."],
111 strong_ellision: ["In strong mode, arrays with holes are depreca ted, use maps instead"], 124 strong_ellision: ["In strong mode, arrays with holes are depreca ted, use maps instead"],
112 strong_arguments: ["In strong mode, 'arguments' is deprecated, us e '...args' instead"], 125 strong_arguments: ["In strong mode, 'arguments' is deprecated, us e '...args' instead"],
113 strong_undefined: ["In strong mode, binding or assigning to 'unde fined' is deprecated"], 126 strong_undefined: ["In strong mode, binding or assigning to 'unde fined' is deprecated"],
127 strong_implicit_cast: ["In strong mode, implicit conversions are depr ecated"],
114 strong_direct_eval: ["In strong mode, direct calls to eval are depr ecated"], 128 strong_direct_eval: ["In strong mode, direct calls to eval are depr ecated"],
115 strong_switch_fallthrough : ["In strong mode, switch fall-through is deprec ated, terminate each case with 'break', 'continue', 'return' or 'throw'"], 129 strong_switch_fallthrough : ["In strong mode, switch fall-through is deprec ated, terminate each case with 'break', 'continue', 'return' or 'throw'"],
116 strong_equal: ["In strong mode, '==' and '!=' are deprecated, use '===' and '!==' instead"], 130 strong_equal: ["In strong mode, '==' and '!=' are deprecated, use '===' and '!==' instead"],
117 strong_delete: ["In strong mode, 'delete' is deprecated, use m aps or sets instead"], 131 strong_delete: ["In strong mode, 'delete' is deprecated, use m aps or sets instead"],
118 strong_var: ["In strong mode, 'var' is deprecated, use 'let ' or 'const' instead"], 132 strong_var: ["In strong mode, 'var' is deprecated, use 'let ' or 'const' instead"],
119 strong_for_in: ["In strong mode, 'for'-'in' loops are deprecat ed, use 'for'-'of' instead"], 133 strong_for_in: ["In strong mode, 'for'-'in' loops are deprecat ed, use 'for'-'of' instead"],
120 strong_empty: ["In strong mode, empty sub-statements are depr ecated, make them explicit with '{}' instead"], 134 strong_empty: ["In strong mode, empty sub-statements are depr ecated, make them explicit with '{}' instead"],
121 strong_use_before_declaration: ["In strong mode, declaring variable '", "%0", "' before its use is required"], 135 strong_use_before_declaration: ["In strong mode, declaring variable '", "%0", "' before its use is required"],
122 strong_unbound_global: ["In strong mode, using an undeclared global va riable '", "%0", "' is not allowed"], 136 strong_unbound_global: ["In strong mode, using an undeclared global va riable '", "%0", "' is not allowed"],
123 strong_super_call_missing: ["In strong mode, invoking the super constructo r in a subclass is required"], 137 strong_super_call_missing: ["In strong mode, invoking the super constructo r in a subclass is required"],
124 strong_super_call_duplicate: ["In strong mode, invoking the super constructo r multiple times is deprecated"], 138 strong_super_call_duplicate: ["In strong mode, invoking the super constructo r multiple times is deprecated"],
125 strong_super_call_misplaced: ["In strong mode, the super constructor must be invoked before any assignment to 'this'"], 139 strong_super_call_misplaced: ["In strong mode, the super constructor must be invoked before any assignment to 'this'"],
126 strong_constructor_super: ["In strong mode, 'super' can only be used to i nvoke the super constructor, and cannot be nested inside another statement or ex pression"], 140 strong_constructor_super: ["In strong mode, 'super' can only be used to i nvoke the super constructor, and cannot be nested inside another statement or ex pression"],
127 strong_constructor_this: ["In strong mode, 'this' can only be used to in itialize properties, and cannot be nested inside another statement or expression "], 141 strong_constructor_this: ["In strong mode, 'this' can only be used to in itialize properties, and cannot be nested inside another statement or expression "],
128 strong_constructor_return_value: ["In strong mode, returning a value from a co nstructor is deprecated"], 142 strong_constructor_return_value: ["In strong mode, returning a value from a co nstructor is deprecated"],
129 strong_constructor_return_misplaced: ["In strong mode, returning from a constr uctor before its super constructor invocation or all assignments to 'this' is de precated"], 143 strong_constructor_return_misplaced: ["In strong mode, returning from a constr uctor before its super constructor invocation or all assignments to 'this' is de precated"],
130 sloppy_lexical: ["Block-scoped declarations (let, const, functi on, class) not yet supported outside strict mode"], 144 sloppy_lexical: ["Block-scoped declarations (let, const, functi on, class) not yet supported outside strict mode"],
131 malformed_arrow_function_parameter_list: ["Malformed arrow function parameter list"], 145 malformed_arrow_function_parameter_list: ["Malformed arrow function parameter list"],
146 cant_prevent_ext_external_array_elements: ["Cannot prevent extension of an obj ect with external array elements"],
147 redef_external_array_element: ["Cannot redefine a property of an object with external array elements"],
148 const_assign: ["Assignment to constant variable."],
132 module_export_undefined: ["Export '", "%0", "' is not defined in module" ], 149 module_export_undefined: ["Export '", "%0", "' is not defined in module" ],
133 duplicate_export: ["Duplicate export of '", "%0", "'"], 150 duplicate_export: ["Duplicate export of '", "%0", "'"],
134 unexpected_super: ["'super' keyword unexpected here"], 151 unexpected_super: ["'super' keyword unexpected here"],
152 extends_value_not_a_function: ["Class extends value ", "%0", " is not a funct ion or null"],
153 extends_value_generator: ["Class extends value ", "%0", " may not be a g enerator function"],
154 prototype_parent_not_an_object: ["Class extends value does not have valid prot otype property ", "%0"],
135 duplicate_constructor: ["A class may only have one constructor"], 155 duplicate_constructor: ["A class may only have one constructor"],
136 super_constructor_call: ["A 'super' constructor call may only appear as the first statement of a function, and its arguments may not access 'this'. Oth er forms are not yet supported."], 156 super_constructor_call: ["A 'super' constructor call may only appear as the first statement of a function, and its arguments may not access 'this'. Oth er forms are not yet supported."],
137 duplicate_proto: ["Duplicate __proto__ fields are not allowed in object literals"], 157 duplicate_proto: ["Duplicate __proto__ fields are not allowed in object literals"],
138 param_after_rest: ["Rest parameter must be last formal parameter" ], 158 param_after_rest: ["Rest parameter must be last formal parameter" ],
139 derived_constructor_return: ["Derived constructors may only return object o r undefined"], 159 derived_constructor_return: ["Derived constructors may only return object o r undefined"],
140 for_in_loop_initializer: ["for-in loop variable declaration may not have an initializer."], 160 for_in_loop_initializer: ["for-in loop variable declaration may not have an initializer."],
141 for_of_loop_initializer: ["for-of loop variable declaration may not have an initializer."], 161 for_of_loop_initializer: ["for-of loop variable declaration may not have an initializer."],
142 for_inof_loop_multi_bindings: ["Invalid left-hand side in ", "%0", " loop: Mu st have a single binding."], 162 for_inof_loop_multi_bindings: ["Invalid left-hand side in ", "%0", " loop: Mu st have a single binding."],
143 bad_getter_arity: ["Getter must not have any formal parameters."] , 163 bad_getter_arity: ["Getter must not have any formal parameters."] ,
144 bad_setter_arity: ["Setter must have exactly one formal parameter ."], 164 bad_setter_arity: ["Setter must have exactly one formal parameter ."],
(...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after
1210 return MakeGenericError(GlobalTypeError, type, [arg]); 1230 return MakeGenericError(GlobalTypeError, type, [arg]);
1211 } 1231 }
1212 1232
1213 //Boilerplate for exceptions for stack overflows. Used from 1233 //Boilerplate for exceptions for stack overflows. Used from
1214 //Isolate::StackOverflow(). 1234 //Isolate::StackOverflow().
1215 $stackOverflowBoilerplate = MakeRangeError(kStackOverflow); 1235 $stackOverflowBoilerplate = MakeRangeError(kStackOverflow);
1216 %DefineAccessorPropertyUnchecked($stackOverflowBoilerplate, 'stack', 1236 %DefineAccessorPropertyUnchecked($stackOverflowBoilerplate, 'stack',
1217 StackTraceGetter, StackTraceSetter, DONT_ENUM); 1237 StackTraceGetter, StackTraceSetter, DONT_ENUM);
1218 1238
1219 })(); 1239 })();
OLDNEW
« no previous file with comments | « src/messages.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698