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"], |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 strong_ellision: ["In strong mode, arrays with holes are depreca
ted, use maps instead"], | 167 strong_ellision: ["In strong mode, arrays with holes are depreca
ted, use maps instead"], |
168 strong_arguments: ["In strong mode, 'arguments' is deprecated, us
e '...args' instead"], | 168 strong_arguments: ["In strong mode, 'arguments' is deprecated, us
e '...args' instead"], |
169 strong_equal: ["In strong mode, '==' and '!=' are deprecated,
use '===' and '!==' instead"], | 169 strong_equal: ["In strong mode, '==' and '!=' are deprecated,
use '===' and '!==' instead"], |
170 strong_delete: ["In strong mode, 'delete' is deprecated, use m
aps or sets instead"], | 170 strong_delete: ["In strong mode, 'delete' is deprecated, use m
aps or sets instead"], |
171 strong_var: ["In strong mode, 'var' is deprecated, use 'let
' or 'const' instead"], | 171 strong_var: ["In strong mode, 'var' is deprecated, use 'let
' or 'const' instead"], |
172 strong_for_in: ["In strong mode, 'for'-'in' loops are deprecat
ed, use 'for'-'of' instead"], | 172 strong_for_in: ["In strong mode, 'for'-'in' loops are deprecat
ed, use 'for'-'of' instead"], |
173 strong_empty: ["In strong mode, empty sub-statements are depr
ecated, make them explicit with '{}' instead"], | 173 strong_empty: ["In strong mode, empty sub-statements are depr
ecated, make them explicit with '{}' instead"], |
174 strong_use_before_declaration: ["In strong mode, declaring variable '", "%0",
"' before its use is required"], | 174 strong_use_before_declaration: ["In strong mode, declaring variable '", "%0",
"' before its use is required"], |
175 strong_super_call_missing: ["In strong mode, invoking the super constructo
r in a subclass is required"], | 175 strong_super_call_missing: ["In strong mode, invoking the super constructo
r in a subclass is required"], |
176 strong_super_call_duplicate: ["In strong mode, invoking the super constructo
r multiple times is deprecated"], | 176 strong_super_call_duplicate: ["In strong mode, invoking the super constructo
r multiple times is deprecated"], |
177 strong_super_call_nested: ["In strong mode, invoking the super constructo
r nested inside another statement or expression is deprecated"], | 177 strong_super_call_misplaced: ["In strong mode, the super constructor must be
invoked before any assignment to 'this'"], |
| 178 strong_constructor_super: ["In strong mode, 'super' can only be used to i
nvoke the super constructor, and cannot be nested inside another statement or ex
pression"], |
| 179 strong_constructor_this: ["In strong mode, 'this' can only be used to in
itialize properties, and cannot be nested inside another statement or expression
"], |
178 strong_constructor_return_value: ["In strong mode, returning a value from a co
nstructor is deprecated"], | 180 strong_constructor_return_value: ["In strong mode, returning a value from a co
nstructor is deprecated"], |
179 strong_constructor_return_misplaced: ["In strong mode, returning from a constr
uctor before its super constructor invocation is deprecated"], | 181 strong_constructor_return_misplaced: ["In strong mode, returning from a constr
uctor before its super constructor invocation or all assignments to 'this' is de
precated"], |
180 sloppy_lexical: ["Block-scoped declarations (let, const, functi
on, class) not yet supported outside strict mode"], | 182 sloppy_lexical: ["Block-scoped declarations (let, const, functi
on, class) not yet supported outside strict mode"], |
181 malformed_arrow_function_parameter_list: ["Malformed arrow function parameter
list"], | 183 malformed_arrow_function_parameter_list: ["Malformed arrow function parameter
list"], |
182 generator_poison_pill: ["'caller' and 'arguments' properties may not b
e accessed on generator functions."], | 184 generator_poison_pill: ["'caller' and 'arguments' properties may not b
e accessed on generator functions."], |
183 cant_prevent_ext_external_array_elements: ["Cannot prevent extension of an obj
ect with external array elements"], | 185 cant_prevent_ext_external_array_elements: ["Cannot prevent extension of an obj
ect with external array elements"], |
184 redef_external_array_element: ["Cannot redefine a property of an object with
external array elements"], | 186 redef_external_array_element: ["Cannot redefine a property of an object with
external array elements"], |
185 const_assign: ["Assignment to constant variable."], | 187 const_assign: ["Assignment to constant variable."], |
186 symbol_to_string: ["Cannot convert a Symbol value to a string"], | 188 symbol_to_string: ["Cannot convert a Symbol value to a string"], |
187 symbol_to_primitive: ["Cannot convert a Symbol wrapper object to a p
rimitive value"], | 189 symbol_to_primitive: ["Cannot convert a Symbol wrapper object to a p
rimitive value"], |
188 symbol_to_number: ["Cannot convert a Symbol value to a number"], | 190 symbol_to_number: ["Cannot convert a Symbol value to a number"], |
189 module_export_undefined: ["Export '", "%0", "' is not defined in module"
], | 191 module_export_undefined: ["Export '", "%0", "' is not defined in module"
], |
(...skipping 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1327 function SetUpStackOverflowBoilerplate() { | 1329 function SetUpStackOverflowBoilerplate() { |
1328 var boilerplate = MakeRangeError('stack_overflow', []); | 1330 var boilerplate = MakeRangeError('stack_overflow', []); |
1329 | 1331 |
1330 %DefineAccessorPropertyUnchecked( | 1332 %DefineAccessorPropertyUnchecked( |
1331 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM); | 1333 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM); |
1332 | 1334 |
1333 return boilerplate; | 1335 return boilerplate; |
1334 } | 1336 } |
1335 | 1337 |
1336 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); | 1338 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); |
OLD | NEW |