| 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 generator_running: ["Generator is already running"], | 11 generator_running: ["Generator is already running"], |
| 12 generator_finished: ["Generator has already finished"], | 12 generator_finished: ["Generator has already finished"], |
| 13 // TypeError | 13 // TypeError |
| 14 unexpected_token: ["Unexpected token ", "%0"], | 14 unexpected_token: ["Unexpected token ", "%0"], |
| 15 unexpected_token_number: ["Unexpected number"], | 15 unexpected_token_number: ["Unexpected number"], |
| 16 unexpected_token_string: ["Unexpected string"], | 16 unexpected_token_string: ["Unexpected string"], |
| 17 unexpected_token_identifier: ["Unexpected identifier"], | 17 unexpected_token_identifier: ["Unexpected identifier"], |
| 18 unexpected_reserved: ["Unexpected reserved word"], | 18 unexpected_reserved: ["Unexpected reserved word"], |
| 19 unexpected_strict_reserved: ["Unexpected strict mode reserved word"], | 19 unexpected_strict_reserved: ["Unexpected strict mode reserved word"], |
| 20 unexpected_eos: ["Unexpected end of input"], | 20 unexpected_eos: ["Unexpected end of input"], |
| 21 malformed_regexp: ["Invalid regular expression: /", "%0", "/: ",
"%1"], | 21 malformed_regexp: ["Invalid regular expression: /", "%0", "/: ",
"%1"], |
| 22 unterminated_regexp: ["Invalid regular expression: missing /"], | 22 unterminated_regexp: ["Invalid regular expression: missing /"], |
| 23 regexp_flags: ["Cannot supply flags when constructing one Reg
Exp from another"], | 23 regexp_flags: ["Cannot supply flags when constructing one Reg
Exp from another"], |
| 24 incompatible_method_receiver: ["Method ", "%0", " called on incompatible rece
iver ", "%1"], | 24 incompatible_method_receiver: ["Method ", "%0", " called on incompatible rece
iver ", "%1"], |
| 25 multiple_defaults_in_switch: ["More than one default clause in switch statem
ent"], | 25 multiple_defaults_in_switch: ["More than one default clause in switch statem
ent"], |
| 26 newline_after_throw: ["Illegal newline after throw"], | 26 newline_after_throw: ["Illegal newline after throw"], |
| 27 label_redeclaration: ["Label '", "%0", "' has already been declared"
], | 27 label_redeclaration: ["Label '", "%0", "' has already been declared"
], |
| 28 var_redeclaration: ["Identifier '", "%0", "' has already been decl
ared"], | 28 var_redeclaration: ["Identifier '", "%0", "' has already been decl
ared"], |
| 29 duplicate_template_property: ["Object template has duplicate property '", "%
0", "'"], |
| 29 no_catch_or_finally: ["Missing catch or finally after try"], | 30 no_catch_or_finally: ["Missing catch or finally after try"], |
| 30 unknown_label: ["Undefined label '", "%0", "'"], | 31 unknown_label: ["Undefined label '", "%0", "'"], |
| 31 uncaught_exception: ["Uncaught ", "%0"], | 32 uncaught_exception: ["Uncaught ", "%0"], |
| 32 stack_trace: ["Stack Trace:\n", "%0"], | 33 stack_trace: ["Stack Trace:\n", "%0"], |
| 33 called_non_callable: ["%0", " is not a function"], | 34 called_non_callable: ["%0", " is not a function"], |
| 34 undefined_method: ["Object ", "%1", " has no method '", "%0", "'"
], | 35 undefined_method: ["Object ", "%1", " has no method '", "%0", "'"
], |
| 35 property_not_function: ["Property '", "%0", "' of object ", "%1", " is
not a function"], | 36 property_not_function: ["Property '", "%0", "' of object ", "%1", " is
not a function"], |
| 36 cannot_convert_to_primitive: ["Cannot convert object to primitive value"], | 37 cannot_convert_to_primitive: ["Cannot convert object to primitive value"], |
| 37 not_constructor: ["%0", " is not a constructor"], | 38 not_constructor: ["%0", " is not a constructor"], |
| 38 not_defined: ["%0", " is not defined"], | 39 not_defined: ["%0", " is not defined"], |
| (...skipping 1299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1338 return result; | 1339 return result; |
| 1339 }; | 1340 }; |
| 1340 | 1341 |
| 1341 %DefineAccessorPropertyUnchecked( | 1342 %DefineAccessorPropertyUnchecked( |
| 1342 boilerplate, 'stack', getter, setter, DONT_ENUM); | 1343 boilerplate, 'stack', getter, setter, DONT_ENUM); |
| 1343 | 1344 |
| 1344 return boilerplate; | 1345 return boilerplate; |
| 1345 } | 1346 } |
| 1346 | 1347 |
| 1347 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); | 1348 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); |
| OLD | NEW |