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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 object_not_extensible: ["Can't add property ", "%0", ", object is not
extensible"], | 147 object_not_extensible: ["Can't add property ", "%0", ", object is not
extensible"], |
148 illegal_access: ["Illegal access"], | 148 illegal_access: ["Illegal access"], |
149 static_prototype: ["Classes may not have static property named pr
ototype"], | 149 static_prototype: ["Classes may not have static property named pr
ototype"], |
150 strict_mode_with: ["Strict mode code may not include a with state
ment"], | 150 strict_mode_with: ["Strict mode code may not include a with state
ment"], |
151 strict_eval_arguments: ["Unexpected eval or arguments in strict mode"]
, | 151 strict_eval_arguments: ["Unexpected eval or arguments in strict mode"]
, |
152 too_many_arguments: ["Too many arguments in function call (only 655
35 allowed)"], | 152 too_many_arguments: ["Too many arguments in function call (only 655
35 allowed)"], |
153 too_many_parameters: ["Too many parameters in function definition (o
nly 65535 allowed)"], | 153 too_many_parameters: ["Too many parameters in function definition (o
nly 65535 allowed)"], |
154 too_many_variables: ["Too many variables declared (only 4194303 all
owed)"], | 154 too_many_variables: ["Too many variables declared (only 4194303 all
owed)"], |
155 strict_param_dupe: ["Strict mode function may not have duplicate p
arameter names"], | 155 strict_param_dupe: ["Strict mode function may not have duplicate p
arameter names"], |
156 strict_octal_literal: ["Octal literals are not allowed in strict mode
."], | 156 strict_octal_literal: ["Octal literals are not allowed in strict mode
."], |
| 157 template_octal_literal: ["Octal literals are not allowed in template st
rings."], |
157 strict_duplicate_property: ["Duplicate data property in object literal not
allowed in strict mode"], | 158 strict_duplicate_property: ["Duplicate data property in object literal not
allowed in strict mode"], |
158 accessor_data_property: ["Object literal may not have data and accessor
property with the same name"], | 159 accessor_data_property: ["Object literal may not have data and accessor
property with the same name"], |
159 accessor_get_set: ["Object literal may not have multiple get/set
accessors with the same name"], | 160 accessor_get_set: ["Object literal may not have multiple get/set
accessors with the same name"], |
160 strict_delete: ["Delete of an unqualified identifier in strict
mode."], | 161 strict_delete: ["Delete of an unqualified identifier in strict
mode."], |
161 strict_delete_property: ["Cannot delete property '", "%0", "' of ", "%1
"], | 162 strict_delete_property: ["Cannot delete property '", "%0", "' of ", "%1
"], |
162 strict_const: ["Use of const in strict mode."], | 163 strict_const: ["Use of const in strict mode."], |
163 strict_function: ["In strict mode code, functions can only be de
clared at top level or immediately within another function." ], | 164 strict_function: ["In strict mode code, functions can only be de
clared at top level or immediately within another function." ], |
164 strict_read_only_property: ["Cannot assign to read only property '", "%0",
"' of ", "%1"], | 165 strict_read_only_property: ["Cannot assign to read only property '", "%0",
"' of ", "%1"], |
165 strict_cannot_assign: ["Cannot assign to read only '", "%0", "' in st
rict mode"], | 166 strict_cannot_assign: ["Cannot assign to read only '", "%0", "' in st
rict mode"], |
166 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"], | 167 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"], |
(...skipping 1150 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 |