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...) Loading... |
167 strong_delete: ["Please don't use 'delete' in strong mode, use
maps or sets instead"], | 167 strong_delete: ["Please don't use 'delete' in strong mode, use
maps or sets instead"], |
168 strong_var: ["Please don't use 'var' in strong mode, use 'l
et' or 'const' instead"], | 168 strong_var: ["Please don't use 'var' in strong mode, use 'l
et' or 'const' instead"], |
169 strong_for_in: ["Please don't use 'for'-'in' loops in strong m
ode, use 'for'-'of' instead"], | 169 strong_for_in: ["Please don't use 'for'-'in' loops in strong m
ode, use 'for'-'of' instead"], |
170 strong_empty: ["Please don't use empty sub-statements in stro
ng mode, make them explicit with '{}' instead"], | 170 strong_empty: ["Please don't use empty sub-statements in stro
ng mode, make them explicit with '{}' instead"], |
171 strong_use_before_declaration: ["Please declare variable '", "%0", "' before u
se in strong mode"], | 171 strong_use_before_declaration: ["Please declare variable '", "%0", "' before u
se in strong mode"], |
172 sloppy_lexical: ["Block-scoped declarations (let, const, functi
on, class) not yet supported outside strict mode"], | 172 sloppy_lexical: ["Block-scoped declarations (let, const, functi
on, class) not yet supported outside strict mode"], |
173 malformed_arrow_function_parameter_list: ["Malformed arrow function parameter
list"], | 173 malformed_arrow_function_parameter_list: ["Malformed arrow function parameter
list"], |
174 generator_poison_pill: ["'caller' and 'arguments' properties may not b
e accessed on generator functions."], | 174 generator_poison_pill: ["'caller' and 'arguments' properties may not b
e accessed on generator functions."], |
175 cant_prevent_ext_external_array_elements: ["Cannot prevent extension of an obj
ect with external array elements"], | 175 cant_prevent_ext_external_array_elements: ["Cannot prevent extension of an obj
ect with external array elements"], |
176 redef_external_array_element: ["Cannot redefine a property of an object with
external array elements"], | 176 redef_external_array_element: ["Cannot redefine a property of an object with
external array elements"], |
177 harmony_const_assign: ["Assignment to constant variable."], | 177 const_assign: ["Assignment to constant variable."], |
178 symbol_to_string: ["Cannot convert a Symbol value to a string"], | 178 symbol_to_string: ["Cannot convert a Symbol value to a string"], |
179 symbol_to_primitive: ["Cannot convert a Symbol wrapper object to a p
rimitive value"], | 179 symbol_to_primitive: ["Cannot convert a Symbol wrapper object to a p
rimitive value"], |
180 symbol_to_number: ["Cannot convert a Symbol value to a number"], | 180 symbol_to_number: ["Cannot convert a Symbol value to a number"], |
181 module_export_undefined: ["Export '", "%0", "' is not defined in module"
], | 181 module_export_undefined: ["Export '", "%0", "' is not defined in module"
], |
182 duplicate_export: ["Duplicate export of '", "%0", "'"], | 182 duplicate_export: ["Duplicate export of '", "%0", "'"], |
183 unexpected_super: ["'super' keyword unexpected here"], | 183 unexpected_super: ["'super' keyword unexpected here"], |
184 extends_value_not_a_function: ["Class extends value ", "%0", " is not a funct
ion or null"], | 184 extends_value_not_a_function: ["Class extends value ", "%0", " is not a funct
ion or null"], |
185 prototype_parent_not_an_object: ["Class extends value does not have valid prot
otype property ", "%0"], | 185 prototype_parent_not_an_object: ["Class extends value does not have valid prot
otype property ", "%0"], |
186 duplicate_constructor: ["A class may only have one constructor"], | 186 duplicate_constructor: ["A class may only have one constructor"], |
187 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."], | 187 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."], |
(...skipping 1134 matching lines...) Loading... |
1322 function SetUpStackOverflowBoilerplate() { | 1322 function SetUpStackOverflowBoilerplate() { |
1323 var boilerplate = MakeRangeError('stack_overflow', []); | 1323 var boilerplate = MakeRangeError('stack_overflow', []); |
1324 | 1324 |
1325 %DefineAccessorPropertyUnchecked( | 1325 %DefineAccessorPropertyUnchecked( |
1326 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM); | 1326 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM); |
1327 | 1327 |
1328 return boilerplate; | 1328 return boilerplate; |
1329 } | 1329 } |
1330 | 1330 |
1331 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); | 1331 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); |
OLD | NEW |