| 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 $errorToString; | 7 var $errorToString; |
| 8 var $formatMessage; | 8 var $formatMessage; |
| 9 var $getStackTraceLine; | 9 var $getStackTraceLine; |
| 10 var $messageGetPositionInLine; | 10 var $messageGetPositionInLine; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 constructor_is_accessor: ["Class constructor may not be an accessor"], | 57 constructor_is_accessor: ["Class constructor may not be an accessor"], |
| 58 // TypeError | 58 // TypeError |
| 59 unexpected_token: ["Unexpected token ", "%0"], | 59 unexpected_token: ["Unexpected token ", "%0"], |
| 60 unexpected_token_number: ["Unexpected number"], | 60 unexpected_token_number: ["Unexpected number"], |
| 61 unexpected_token_string: ["Unexpected string"], | 61 unexpected_token_string: ["Unexpected string"], |
| 62 unexpected_token_identifier: ["Unexpected identifier"], | 62 unexpected_token_identifier: ["Unexpected identifier"], |
| 63 unexpected_reserved: ["Unexpected reserved word"], | 63 unexpected_reserved: ["Unexpected reserved word"], |
| 64 unexpected_strict_reserved: ["Unexpected strict mode reserved word"], | 64 unexpected_strict_reserved: ["Unexpected strict mode reserved word"], |
| 65 unexpected_eos: ["Unexpected end of input"], | 65 unexpected_eos: ["Unexpected end of input"], |
| 66 unexpected_template_string: ["Unexpected template string"], | 66 unexpected_template_string: ["Unexpected template string"], |
| 67 malformed_regexp: ["Invalid regular expression: /", "%0", "/: ",
"%1"], | |
| 68 malformed_regexp_flags: ["Invalid regular expression flags"], | 67 malformed_regexp_flags: ["Invalid regular expression flags"], |
| 69 unterminated_regexp: ["Invalid regular expression: missing /"], | 68 unterminated_regexp: ["Invalid regular expression: missing /"], |
| 70 unterminated_template: ["Unterminated template literal"], | 69 unterminated_template: ["Unterminated template literal"], |
| 71 unterminated_template_expr: ["Missing } in template expression"], | 70 unterminated_template_expr: ["Missing } in template expression"], |
| 72 unterminated_arg_list: ["missing ) after argument list"], | 71 unterminated_arg_list: ["missing ) after argument list"], |
| 73 regexp_flags: ["Cannot supply flags when constructing one Reg
Exp from another"], | |
| 74 multiple_defaults_in_switch: ["More than one default clause in switch statem
ent"], | 72 multiple_defaults_in_switch: ["More than one default clause in switch statem
ent"], |
| 75 newline_after_throw: ["Illegal newline after throw"], | 73 newline_after_throw: ["Illegal newline after throw"], |
| 76 label_redeclaration: ["Label '", "%0", "' has already been declared"
], | 74 label_redeclaration: ["Label '", "%0", "' has already been declared"
], |
| 77 var_redeclaration: ["Identifier '", "%0", "' has already been decl
ared"], | 75 var_redeclaration: ["Identifier '", "%0", "' has already been decl
ared"], |
| 78 no_catch_or_finally: ["Missing catch or finally after try"], | 76 no_catch_or_finally: ["Missing catch or finally after try"], |
| 79 unknown_label: ["Undefined label '", "%0", "'"], | 77 unknown_label: ["Undefined label '", "%0", "'"], |
| 80 uncaught_exception: ["Uncaught ", "%0"], | 78 uncaught_exception: ["Uncaught ", "%0"], |
| 81 undefined_method: ["Object ", "%1", " has no method '", "%0", "'"
], | 79 undefined_method: ["Object ", "%1", " has no method '", "%0", "'"
], |
| 82 non_object_property_store: ["Cannot set property '", "%0", "' of ", "%1"], | 80 non_object_property_store: ["Cannot set property '", "%0", "' of ", "%1"], |
| 83 value_and_accessor: ["Invalid property. A property cannot both hav
e accessors and be writable or have a value, ", "%0"], | 81 value_and_accessor: ["Invalid property. A property cannot both hav
e accessors and be writable or have a value, ", "%0"], |
| 84 proto_object_or_null: ["Object prototype may only be an Object or nul
l: ", "%0"], | 82 proto_object_or_null: ["Object prototype may only be an Object or nul
l: ", "%0"], |
| 85 invalid_weakmap_key: ["Invalid value used as weak map key"], | |
| 86 invalid_weakset_value: ["Invalid value used in weak set"], | |
| 87 not_a_symbol: ["%0", " is not a symbol"], | |
| 88 // ReferenceError | 83 // ReferenceError |
| 89 invalid_lhs_in_assignment: ["Invalid left-hand side in assignment"], | 84 invalid_lhs_in_assignment: ["Invalid left-hand side in assignment"], |
| 90 invalid_lhs_in_for: ["Invalid left-hand side in for-loop"], | 85 invalid_lhs_in_for: ["Invalid left-hand side in for-loop"], |
| 91 invalid_lhs_in_postfix_op: ["Invalid left-hand side expression in postfix
operation"], | 86 invalid_lhs_in_postfix_op: ["Invalid left-hand side expression in postfix
operation"], |
| 92 invalid_lhs_in_prefix_op: ["Invalid left-hand side expression in prefix o
peration"], | 87 invalid_lhs_in_prefix_op: ["Invalid left-hand side expression in prefix o
peration"], |
| 93 // SyntaxError | 88 // SyntaxError |
| 94 not_isvar: ["builtin %IS_VAR: not a variable"], | 89 not_isvar: ["builtin %IS_VAR: not a variable"], |
| 95 single_function_literal: ["Single function literal required"], | 90 single_function_literal: ["Single function literal required"], |
| 96 invalid_regexp_flags: ["Invalid flags supplied to RegExp constructor
'", "%0", "'"], | |
| 97 invalid_regexp: ["Invalid RegExp pattern /", "%0", "/"], | |
| 98 illegal_break: ["Illegal break statement"], | 91 illegal_break: ["Illegal break statement"], |
| 99 illegal_continue: ["Illegal continue statement"], | 92 illegal_continue: ["Illegal continue statement"], |
| 100 illegal_return: ["Illegal return statement"], | 93 illegal_return: ["Illegal return statement"], |
| 101 error_loading_debugger: ["Error loading debugger"], | 94 error_loading_debugger: ["Error loading debugger"], |
| 102 array_indexof_not_defined: ["Array.getIndexOf: Argument undefined"], | 95 array_indexof_not_defined: ["Array.getIndexOf: Argument undefined"], |
| 103 illegal_access: ["Illegal access"], | 96 illegal_access: ["Illegal access"], |
| 104 static_prototype: ["Classes may not have static property named pr
ototype"], | 97 static_prototype: ["Classes may not have static property named pr
ototype"], |
| 105 strict_mode_with: ["Strict mode code may not include a with state
ment"], | 98 strict_mode_with: ["Strict mode code may not include a with state
ment"], |
| 106 strict_eval_arguments: ["Unexpected eval or arguments in strict mode"]
, | 99 strict_eval_arguments: ["Unexpected eval or arguments in strict mode"]
, |
| 107 too_many_arguments: ["Too many arguments in function call (only 655
35 allowed)"], | 100 too_many_arguments: ["Too many arguments in function call (only 655
35 allowed)"], |
| (...skipping 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1215 return MakeGenericError(GlobalTypeError, type, [arg]); | 1208 return MakeGenericError(GlobalTypeError, type, [arg]); |
| 1216 } | 1209 } |
| 1217 | 1210 |
| 1218 //Boilerplate for exceptions for stack overflows. Used from | 1211 //Boilerplate for exceptions for stack overflows. Used from |
| 1219 //Isolate::StackOverflow(). | 1212 //Isolate::StackOverflow(). |
| 1220 $stackOverflowBoilerplate = MakeRangeError(kStackOverflow); | 1213 $stackOverflowBoilerplate = MakeRangeError(kStackOverflow); |
| 1221 %DefineAccessorPropertyUnchecked($stackOverflowBoilerplate, 'stack', | 1214 %DefineAccessorPropertyUnchecked($stackOverflowBoilerplate, 'stack', |
| 1222 StackTraceGetter, StackTraceSetter, DONT_ENUM); | 1215 StackTraceGetter, StackTraceSetter, DONT_ENUM); |
| 1223 | 1216 |
| 1224 }) | 1217 }) |
| OLD | NEW |