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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 strict_octal_literal: ["Octal literals are not allowed in strict mode
."], | 154 strict_octal_literal: ["Octal literals are not allowed in strict mode
."], |
155 template_octal_literal: ["Octal literals are not allowed in template st
rings."], | 155 template_octal_literal: ["Octal literals are not allowed in template st
rings."], |
156 strict_delete: ["Delete of an unqualified identifier in strict
mode."], | 156 strict_delete: ["Delete of an unqualified identifier in strict
mode."], |
157 strict_delete_property: ["Cannot delete property '", "%0", "' of ", "%1
"], | 157 strict_delete_property: ["Cannot delete property '", "%0", "' of ", "%1
"], |
158 strict_const: ["Use of const in strict mode."], | 158 strict_const: ["Use of const in strict mode."], |
159 strict_function: ["In strict mode code, functions can only be de
clared at top level or immediately within another function." ], | 159 strict_function: ["In strict mode code, functions can only be de
clared at top level or immediately within another function." ], |
160 strict_read_only_property: ["Cannot assign to read only property '", "%0",
"' of ", "%1"], | 160 strict_read_only_property: ["Cannot assign to read only property '", "%0",
"' of ", "%1"], |
161 strict_cannot_assign: ["Cannot assign to read only '", "%0", "' in st
rict mode"], | 161 strict_cannot_assign: ["Cannot assign to read only '", "%0", "' in st
rict mode"], |
162 strict_poison_pill: ["'caller', 'callee', and 'arguments' propertie
s may not be accessed on strict mode functions or the arguments objects for call
s to them"], | 162 strict_poison_pill: ["'caller', 'callee', and 'arguments' propertie
s may not be accessed on strict mode functions or the arguments objects for call
s to them"], |
163 strict_caller: ["Illegal access to a strict mode caller functi
on."], | 163 strict_caller: ["Illegal access to a strict mode caller functi
on."], |
| 164 strong_arguments: ["Please don't use 'arguments' in strong mode,
use '...args' instead"], |
164 strong_equal: ["Please don't use '==' or '!=' in strong mode,
use '===' or '!==' instead"], | 165 strong_equal: ["Please don't use '==' or '!=' in strong mode,
use '===' or '!==' instead"], |
165 strong_delete: ["Please don't use 'delete' in strong mode, use
maps or sets instead"], | 166 strong_delete: ["Please don't use 'delete' in strong mode, use
maps or sets instead"], |
166 strong_var: ["Please don't use 'var' in strong mode, use 'l
et' or 'const' instead"], | 167 strong_var: ["Please don't use 'var' in strong mode, use 'l
et' or 'const' instead"], |
167 strong_empty: ["Please don't use empty sub-statements in stro
ng mode, make them explicit with '{}' instead"], | 168 strong_empty: ["Please don't use empty sub-statements in stro
ng mode, make them explicit with '{}' instead"], |
168 sloppy_lexical: ["Block-scoped declarations (let, const, functi
on, class) not yet supported outside strict mode"], | 169 sloppy_lexical: ["Block-scoped declarations (let, const, functi
on, class) not yet supported outside strict mode"], |
169 malformed_arrow_function_parameter_list: ["Malformed arrow function parameter
list"], | 170 malformed_arrow_function_parameter_list: ["Malformed arrow function parameter
list"], |
170 generator_poison_pill: ["'caller' and 'arguments' properties may not b
e accessed on generator functions."], | 171 generator_poison_pill: ["'caller' and 'arguments' properties may not b
e accessed on generator functions."], |
171 cant_prevent_ext_external_array_elements: ["Cannot prevent extension of an obj
ect with external array elements"], | 172 cant_prevent_ext_external_array_elements: ["Cannot prevent extension of an obj
ect with external array elements"], |
172 redef_external_array_element: ["Cannot redefine a property of an object with
external array elements"], | 173 redef_external_array_element: ["Cannot redefine a property of an object with
external array elements"], |
173 harmony_const_assign: ["Assignment to constant variable."], | 174 harmony_const_assign: ["Assignment to constant variable."], |
(...skipping 1143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1317 function SetUpStackOverflowBoilerplate() { | 1318 function SetUpStackOverflowBoilerplate() { |
1318 var boilerplate = MakeRangeError('stack_overflow', []); | 1319 var boilerplate = MakeRangeError('stack_overflow', []); |
1319 | 1320 |
1320 %DefineAccessorPropertyUnchecked( | 1321 %DefineAccessorPropertyUnchecked( |
1321 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM); | 1322 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM); |
1322 | 1323 |
1323 return boilerplate; | 1324 return boilerplate; |
1324 } | 1325 } |
1325 | 1326 |
1326 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); | 1327 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); |
OLD | NEW |