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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 strict_function: ["In strict mode code, functions can only be de
clared at top level or immediately within another function." ], | 162 strict_function: ["In strict mode code, functions can only be de
clared at top level or immediately within another function." ], |
163 strict_read_only_property: ["Cannot assign to read only property '", "%0",
"' of ", "%1"], | 163 strict_read_only_property: ["Cannot assign to read only property '", "%0",
"' of ", "%1"], |
164 strict_cannot_assign: ["Cannot assign to read only '", "%0", "' in st
rict mode"], | 164 strict_cannot_assign: ["Cannot assign to read only '", "%0", "' in st
rict mode"], |
165 restricted_function_properties: ["'caller' and 'arguments' are restricted func
tion properties and cannot be accessed in this context."], | 165 restricted_function_properties: ["'caller' and 'arguments' are restricted func
tion properties and cannot be accessed in this context."], |
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"], | 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_caller: ["Illegal access to a strict mode caller functi
on."], | 167 strict_caller: ["Illegal access to a strict mode caller functi
on."], |
168 strong_ellision: ["In strong mode, arrays with holes are depreca
ted, use maps instead"], | 168 strong_ellision: ["In strong mode, arrays with holes are depreca
ted, use maps instead"], |
169 strong_arguments: ["In strong mode, 'arguments' is deprecated, us
e '...args' instead"], | 169 strong_arguments: ["In strong mode, 'arguments' is deprecated, us
e '...args' instead"], |
170 strong_undefined: ["In strong mode, binding or assigning to 'unde
fined' is deprecated"], | 170 strong_undefined: ["In strong mode, binding or assigning to 'unde
fined' is deprecated"], |
171 strong_direct_eval: ["In strong mode, direct calls to eval are depr
ecated"], | 171 strong_direct_eval: ["In strong mode, direct calls to eval are depr
ecated"], |
| 172 strong_switch_fallthrough : ["In strong mode, switch fall-through is deprec
ated, terminate each case with 'break', 'continue', 'return' or 'throw'"], |
172 strong_equal: ["In strong mode, '==' and '!=' are deprecated,
use '===' and '!==' instead"], | 173 strong_equal: ["In strong mode, '==' and '!=' are deprecated,
use '===' and '!==' instead"], |
173 strong_delete: ["In strong mode, 'delete' is deprecated, use m
aps or sets instead"], | 174 strong_delete: ["In strong mode, 'delete' is deprecated, use m
aps or sets instead"], |
174 strong_var: ["In strong mode, 'var' is deprecated, use 'let
' or 'const' instead"], | 175 strong_var: ["In strong mode, 'var' is deprecated, use 'let
' or 'const' instead"], |
175 strong_for_in: ["In strong mode, 'for'-'in' loops are deprecat
ed, use 'for'-'of' instead"], | 176 strong_for_in: ["In strong mode, 'for'-'in' loops are deprecat
ed, use 'for'-'of' instead"], |
176 strong_empty: ["In strong mode, empty sub-statements are depr
ecated, make them explicit with '{}' instead"], | 177 strong_empty: ["In strong mode, empty sub-statements are depr
ecated, make them explicit with '{}' instead"], |
177 strong_use_before_declaration: ["In strong mode, declaring variable '", "%0",
"' before its use is required"], | 178 strong_use_before_declaration: ["In strong mode, declaring variable '", "%0",
"' before its use is required"], |
178 strong_unbound_global: ["In strong mode, using an undeclared global va
riable '", "%0", "' is not allowed"], | 179 strong_unbound_global: ["In strong mode, using an undeclared global va
riable '", "%0", "' is not allowed"], |
179 strong_super_call_missing: ["In strong mode, invoking the super constructo
r in a subclass is required"], | 180 strong_super_call_missing: ["In strong mode, invoking the super constructo
r in a subclass is required"], |
180 strong_super_call_duplicate: ["In strong mode, invoking the super constructo
r multiple times is deprecated"], | 181 strong_super_call_duplicate: ["In strong mode, invoking the super constructo
r multiple times is deprecated"], |
181 strong_super_call_nested: ["In strong mode, invoking the super constructo
r nested inside another statement or expression is deprecated"], | 182 strong_super_call_nested: ["In strong mode, invoking the super constructo
r nested inside another statement or expression is deprecated"], |
(...skipping 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1290 function SetUpStackOverflowBoilerplate() { | 1291 function SetUpStackOverflowBoilerplate() { |
1291 var boilerplate = MakeRangeError('stack_overflow', []); | 1292 var boilerplate = MakeRangeError('stack_overflow', []); |
1292 | 1293 |
1293 %DefineAccessorPropertyUnchecked( | 1294 %DefineAccessorPropertyUnchecked( |
1294 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM); | 1295 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM); |
1295 | 1296 |
1296 return boilerplate; | 1297 return boilerplate; |
1297 } | 1298 } |
1298 | 1299 |
1299 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); | 1300 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); |
OLD | NEW |