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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 accessor_data_property: ["Object literal may not have data and accessor
property with the same name"], | 145 accessor_data_property: ["Object literal may not have data and accessor
property with the same name"], |
146 accessor_get_set: ["Object literal may not have multiple get/set
accessors with the same name"], | 146 accessor_get_set: ["Object literal may not have multiple get/set
accessors with the same name"], |
147 strict_delete: ["Delete of an unqualified identifier in strict
mode."], | 147 strict_delete: ["Delete of an unqualified identifier in strict
mode."], |
148 strict_delete_property: ["Cannot delete property '", "%0", "' of ", "%1
"], | 148 strict_delete_property: ["Cannot delete property '", "%0", "' of ", "%1
"], |
149 strict_const: ["Use of const in strict mode."], | 149 strict_const: ["Use of const in strict mode."], |
150 strict_function: ["In strict mode code, functions can only be de
clared at top level or immediately within another function." ], | 150 strict_function: ["In strict mode code, functions can only be de
clared at top level or immediately within another function." ], |
151 strict_read_only_property: ["Cannot assign to read only property '", "%0",
"' of ", "%1"], | 151 strict_read_only_property: ["Cannot assign to read only property '", "%0",
"' of ", "%1"], |
152 strict_cannot_assign: ["Cannot assign to read only '", "%0", "' in st
rict mode"], | 152 strict_cannot_assign: ["Cannot assign to read only '", "%0", "' in st
rict mode"], |
153 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"], | 153 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"], |
154 strict_caller: ["Illegal access to a strict mode caller functi
on."], | 154 strict_caller: ["Illegal access to a strict mode caller functi
on."], |
| 155 generator_poison_pill: ["'caller' and 'arguments' properties may not b
e accessed on generator functions."], |
155 unprotected_let: ["Illegal let declaration in unprotected statem
ent context."], | 156 unprotected_let: ["Illegal let declaration in unprotected statem
ent context."], |
156 unprotected_const: ["Illegal const declaration in unprotected stat
ement context."], | 157 unprotected_const: ["Illegal const declaration in unprotected stat
ement context."], |
157 cant_prevent_ext_external_array_elements: ["Cannot prevent extension of an obj
ect with external array elements"], | 158 cant_prevent_ext_external_array_elements: ["Cannot prevent extension of an obj
ect with external array elements"], |
158 redef_external_array_element: ["Cannot redefine a property of an object with
external array elements"], | 159 redef_external_array_element: ["Cannot redefine a property of an object with
external array elements"], |
159 harmony_const_assign: ["Assignment to constant variable."], | 160 harmony_const_assign: ["Assignment to constant variable."], |
160 symbol_to_string: ["Cannot convert a Symbol value to a string"], | 161 symbol_to_string: ["Cannot convert a Symbol value to a string"], |
161 symbol_to_primitive: ["Cannot convert a Symbol wrapper object to a p
rimitive value"], | 162 symbol_to_primitive: ["Cannot convert a Symbol wrapper object to a p
rimitive value"], |
162 invalid_module_path: ["Module does not export '", "%0", "', or expor
t is not itself a module"], | 163 invalid_module_path: ["Module does not export '", "%0", "', or expor
t is not itself a module"], |
163 module_type_error: ["Module '", "%0", "' used improperly"], | 164 module_type_error: ["Module '", "%0", "' used improperly"], |
164 module_export_undefined: ["Export '", "%0", "' is not defined in module"
] | 165 module_export_undefined: ["Export '", "%0", "' is not defined in module"
] |
(...skipping 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1330 return result; | 1331 return result; |
1331 }; | 1332 }; |
1332 | 1333 |
1333 %DefineOrRedefineAccessorProperty( | 1334 %DefineOrRedefineAccessorProperty( |
1334 boilerplate, 'stack', getter, setter, DONT_ENUM); | 1335 boilerplate, 'stack', getter, setter, DONT_ENUM); |
1335 | 1336 |
1336 return boilerplate; | 1337 return boilerplate; |
1337 } | 1338 } |
1338 | 1339 |
1339 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); | 1340 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); |
OLD | NEW |