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 constructor_special_method: ["Class constructor may not be an accessor"], |
| 12 // TypeError |
12 generator_running: ["Generator is already running"], | 13 generator_running: ["Generator is already running"], |
13 generator_finished: ["Generator has already finished"], | |
14 // TypeError | |
15 unexpected_token: ["Unexpected token ", "%0"], | 14 unexpected_token: ["Unexpected token ", "%0"], |
16 unexpected_token_number: ["Unexpected number"], | 15 unexpected_token_number: ["Unexpected number"], |
17 unexpected_token_string: ["Unexpected string"], | 16 unexpected_token_string: ["Unexpected string"], |
18 unexpected_token_identifier: ["Unexpected identifier"], | 17 unexpected_token_identifier: ["Unexpected identifier"], |
19 unexpected_reserved: ["Unexpected reserved word"], | 18 unexpected_reserved: ["Unexpected reserved word"], |
20 unexpected_strict_reserved: ["Unexpected strict mode reserved word"], | 19 unexpected_strict_reserved: ["Unexpected strict mode reserved word"], |
21 unexpected_eos: ["Unexpected end of input"], | 20 unexpected_eos: ["Unexpected end of input"], |
22 malformed_regexp: ["Invalid regular expression: /", "%0", "/: ",
"%1"], | 21 malformed_regexp: ["Invalid regular expression: /", "%0", "/: ",
"%1"], |
23 malformed_regexp_flags: ["Invalid regular expression flags"], | 22 malformed_regexp_flags: ["Invalid regular expression flags"], |
24 unterminated_regexp: ["Invalid regular expression: missing /"], | 23 unterminated_regexp: ["Invalid regular expression: missing /"], |
(...skipping 1295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1320 function SetUpStackOverflowBoilerplate() { | 1319 function SetUpStackOverflowBoilerplate() { |
1321 var boilerplate = MakeRangeError('stack_overflow', []); | 1320 var boilerplate = MakeRangeError('stack_overflow', []); |
1322 | 1321 |
1323 %DefineAccessorPropertyUnchecked( | 1322 %DefineAccessorPropertyUnchecked( |
1324 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM); | 1323 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM); |
1325 | 1324 |
1326 return boilerplate; | 1325 return boilerplate; |
1327 } | 1326 } |
1328 | 1327 |
1329 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); | 1328 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); |
OLD | NEW |