OLD | NEW |
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 kMessages = { | 7 var kMessages = { |
8 // Error | 8 // Error |
9 cyclic_proto: ["Cyclic __proto__ value"], | 9 cyclic_proto: ["Cyclic __proto__ value"], |
10 code_gen_from_strings: ["%0"], | 10 code_gen_from_strings: ["%0"], |
| 11 constructor_special_method: ["Class constructor may not be an accessor"], |
11 generator_running: ["Generator is already running"], | 12 generator_running: ["Generator is already running"], |
12 generator_finished: ["Generator has already finished"], | 13 generator_finished: ["Generator has already finished"], |
13 // TypeError | 14 // TypeError |
14 unexpected_token: ["Unexpected token ", "%0"], | 15 unexpected_token: ["Unexpected token ", "%0"], |
15 unexpected_token_number: ["Unexpected number"], | 16 unexpected_token_number: ["Unexpected number"], |
16 unexpected_token_string: ["Unexpected string"], | 17 unexpected_token_string: ["Unexpected string"], |
17 unexpected_token_identifier: ["Unexpected identifier"], | 18 unexpected_token_identifier: ["Unexpected identifier"], |
18 unexpected_reserved: ["Unexpected reserved word"], | 19 unexpected_reserved: ["Unexpected reserved word"], |
19 unexpected_strict_reserved: ["Unexpected strict mode reserved word"], | 20 unexpected_strict_reserved: ["Unexpected strict mode reserved word"], |
20 unexpected_eos: ["Unexpected end of input"], | 21 unexpected_eos: ["Unexpected end of input"], |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 illegal_return: ["Illegal return statement"], | 133 illegal_return: ["Illegal return statement"], |
133 error_loading_debugger: ["Error loading debugger"], | 134 error_loading_debugger: ["Error loading debugger"], |
134 no_input_to_regexp: ["No input to ", "%0"], | 135 no_input_to_regexp: ["No input to ", "%0"], |
135 invalid_json: ["String '", "%0", "' is not valid JSON"], | 136 invalid_json: ["String '", "%0", "' is not valid JSON"], |
136 circular_structure: ["Converting circular structure to JSON"], | 137 circular_structure: ["Converting circular structure to JSON"], |
137 called_on_non_object: ["%0", " called on non-object"], | 138 called_on_non_object: ["%0", " called on non-object"], |
138 called_on_null_or_undefined: ["%0", " called on null or undefined"], | 139 called_on_null_or_undefined: ["%0", " called on null or undefined"], |
139 array_indexof_not_defined: ["Array.getIndexOf: Argument undefined"], | 140 array_indexof_not_defined: ["Array.getIndexOf: Argument undefined"], |
140 object_not_extensible: ["Can't add property ", "%0", ", object is not
extensible"], | 141 object_not_extensible: ["Can't add property ", "%0", ", object is not
extensible"], |
141 illegal_access: ["Illegal access"], | 142 illegal_access: ["Illegal access"], |
| 143 static_prototype: ["Classes may not have static property named pr
ototype"], |
142 strict_mode_with: ["Strict mode code may not include a with state
ment"], | 144 strict_mode_with: ["Strict mode code may not include a with state
ment"], |
143 strict_eval_arguments: ["Unexpected eval or arguments in strict mode"]
, | 145 strict_eval_arguments: ["Unexpected eval or arguments in strict mode"]
, |
144 too_many_arguments: ["Too many arguments in function call (only 655
35 allowed)"], | 146 too_many_arguments: ["Too many arguments in function call (only 655
35 allowed)"], |
145 too_many_parameters: ["Too many parameters in function definition (o
nly 65535 allowed)"], | 147 too_many_parameters: ["Too many parameters in function definition (o
nly 65535 allowed)"], |
146 too_many_variables: ["Too many variables declared (only 4194303 all
owed)"], | 148 too_many_variables: ["Too many variables declared (only 4194303 all
owed)"], |
147 strict_param_dupe: ["Strict mode function may not have duplicate p
arameter names"], | 149 strict_param_dupe: ["Strict mode function may not have duplicate p
arameter names"], |
148 strict_octal_literal: ["Octal literals are not allowed in strict mode
."], | 150 strict_octal_literal: ["Octal literals are not allowed in strict mode
."], |
149 strict_duplicate_property: ["Duplicate data property in object literal not
allowed in strict mode"], | 151 strict_duplicate_property: ["Duplicate data property in object literal not
allowed in strict mode"], |
150 accessor_data_property: ["Object literal may not have data and accessor
property with the same name"], | 152 accessor_data_property: ["Object literal may not have data and accessor
property with the same name"], |
151 accessor_get_set: ["Object literal may not have multiple get/set
accessors with the same name"], | 153 accessor_get_set: ["Object literal may not have multiple get/set
accessors with the same name"], |
(...skipping 1135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1287 function SetUpStackOverflowBoilerplate() { | 1289 function SetUpStackOverflowBoilerplate() { |
1288 var boilerplate = MakeRangeError('stack_overflow', []); | 1290 var boilerplate = MakeRangeError('stack_overflow', []); |
1289 | 1291 |
1290 %DefineAccessorPropertyUnchecked( | 1292 %DefineAccessorPropertyUnchecked( |
1291 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM); | 1293 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM); |
1292 | 1294 |
1293 return boilerplate; | 1295 return boilerplate; |
1294 } | 1296 } |
1295 | 1297 |
1296 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); | 1298 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); |
OLD | NEW |