| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 duplicate_template_property: ["Object template has duplicate property '", "%
0", "'"], |
| 74 no_catch_or_finally: ["Missing catch or finally after try"], | 74 no_catch_or_finally: ["Missing catch or finally after try"], |
| 75 unknown_label: ["Undefined label '", "%0", "'"], | 75 unknown_label: ["Undefined label '", "%0", "'"], |
| 76 uncaught_exception: ["Uncaught ", "%0"], | 76 uncaught_exception: ["Uncaught ", "%0"], |
| 77 undefined_method: ["Object ", "%1", " has no method '", "%0", "'"
], | 77 undefined_method: ["Object ", "%1", " has no method '", "%0", "'"
], |
| 78 not_defined: ["%0", " is not defined"], | |
| 79 non_method: ["'super' is referenced from non-method"], | |
| 80 unsupported_super: ["Unsupported reference to 'super'"], | |
| 81 non_object_property_load: ["Cannot read property '", "%0", "' of ", "%1"]
, | 78 non_object_property_load: ["Cannot read property '", "%0", "' of ", "%1"]
, |
| 82 non_object_property_store: ["Cannot set property '", "%0", "' of ", "%1"], | 79 non_object_property_store: ["Cannot set property '", "%0", "' of ", "%1"], |
| 83 illegal_invocation: ["Illegal invocation"], | 80 illegal_invocation: ["Illegal invocation"], |
| 84 no_setter_in_callback: ["Cannot set property ", "%0", " of ", "%1", "
which has only a getter"], | 81 no_setter_in_callback: ["Cannot set property ", "%0", " of ", "%1", "
which has only a getter"], |
| 85 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"], |
| 86 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"], |
| 87 non_extensible_proto: ["%0", " is not extensible"], | 84 non_extensible_proto: ["%0", " is not extensible"], |
| 88 invalid_weakmap_key: ["Invalid value used as weak map key"], | 85 invalid_weakmap_key: ["Invalid value used as weak map key"], |
| 89 invalid_weakset_value: ["Invalid value used in weak set"], | 86 invalid_weakset_value: ["Invalid value used in weak set"], |
| 90 not_date_object: ["this is not a Date object."], | 87 not_date_object: ["this is not a Date object."], |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 module_export_undefined: ["Export '", "%0", "' is not defined in module"
], | 149 module_export_undefined: ["Export '", "%0", "' is not defined in module"
], |
| 153 duplicate_export: ["Duplicate export of '", "%0", "'"], | 150 duplicate_export: ["Duplicate export of '", "%0", "'"], |
| 154 unexpected_super: ["'super' keyword unexpected here"], | 151 unexpected_super: ["'super' keyword unexpected here"], |
| 155 extends_value_not_a_function: ["Class extends value ", "%0", " is not a funct
ion or null"], | 152 extends_value_not_a_function: ["Class extends value ", "%0", " is not a funct
ion or null"], |
| 156 extends_value_generator: ["Class extends value ", "%0", " may not be a g
enerator function"], | 153 extends_value_generator: ["Class extends value ", "%0", " may not be a g
enerator function"], |
| 157 prototype_parent_not_an_object: ["Class extends value does not have valid prot
otype property ", "%0"], | 154 prototype_parent_not_an_object: ["Class extends value does not have valid prot
otype property ", "%0"], |
| 158 duplicate_constructor: ["A class may only have one constructor"], | 155 duplicate_constructor: ["A class may only have one constructor"], |
| 159 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."], |
| 160 duplicate_proto: ["Duplicate __proto__ fields are not allowed in
object literals"], | 157 duplicate_proto: ["Duplicate __proto__ fields are not allowed in
object literals"], |
| 161 param_after_rest: ["Rest parameter must be last formal parameter"
], | 158 param_after_rest: ["Rest parameter must be last formal parameter"
], |
| 162 constructor_noncallable: ["Class constructors cannot be invoked without
'new'"], | |
| 163 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"], |
| 164 array_not_subclassable: ["Subclassing Arrays is not currently supported
."], | |
| 165 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."], |
| 166 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."], |
| 167 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."], |
| 168 bad_getter_arity: ["Getter must not have any formal parameters."]
, | 163 bad_getter_arity: ["Getter must not have any formal parameters."]
, |
| 169 bad_setter_arity: ["Setter must have exactly one formal parameter
."], | 164 bad_setter_arity: ["Setter must have exactly one formal parameter
."], |
| 170 this_formal_parameter: ["'this' is not a valid formal parameter name"]
, | 165 this_formal_parameter: ["'this' is not a valid formal parameter name"]
, |
| 171 duplicate_arrow_function_formal_parameter: ["Arrow function may not have dupli
cate parameter names"] | 166 duplicate_arrow_function_formal_parameter: ["Arrow function may not have dupli
cate parameter names"] |
| 172 }; | 167 }; |
| 173 | 168 |
| 174 | 169 |
| (...skipping 1060 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1235 return MakeGenericError(GlobalTypeError, type, [arg]); | 1230 return MakeGenericError(GlobalTypeError, type, [arg]); |
| 1236 } | 1231 } |
| 1237 | 1232 |
| 1238 //Boilerplate for exceptions for stack overflows. Used from | 1233 //Boilerplate for exceptions for stack overflows. Used from |
| 1239 //Isolate::StackOverflow(). | 1234 //Isolate::StackOverflow(). |
| 1240 $stackOverflowBoilerplate = MakeRangeError(kStackOverflow); | 1235 $stackOverflowBoilerplate = MakeRangeError(kStackOverflow); |
| 1241 %DefineAccessorPropertyUnchecked($stackOverflowBoilerplate, 'stack', | 1236 %DefineAccessorPropertyUnchecked($stackOverflowBoilerplate, 'stack', |
| 1242 StackTraceGetter, StackTraceSetter, DONT_ENUM); | 1237 StackTraceGetter, StackTraceSetter, DONT_ENUM); |
| 1243 | 1238 |
| 1244 })(); | 1239 })(); |
| OLD | NEW |