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 constructor_is_generator: ["Class constructor may not be a generator"], | 9 constructor_is_generator: ["Class constructor may not be a generator"], |
10 constructor_is_accessor: ["Class constructor may not be an accessor"], | 10 constructor_is_accessor: ["Class constructor may not be an accessor"], |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
125 strict_delete_property: ["Cannot delete property '", "%0", "' of ", "%1 "], | 125 strict_delete_property: ["Cannot delete property '", "%0", "' of ", "%1 "], |
126 strict_function: ["In strict mode code, functions can only be de clared at top level or immediately within another function." ], | 126 strict_function: ["In strict mode code, functions can only be de clared at top level or immediately within another function." ], |
127 strict_read_only_property: ["Cannot assign to read only property '", "%0", "' of ", "%1"], | 127 strict_read_only_property: ["Cannot assign to read only property '", "%0", "' of ", "%1"], |
128 strict_cannot_assign: ["Cannot assign to read only '", "%0", "' in st rict mode"], | 128 strict_cannot_assign: ["Cannot assign to read only '", "%0", "' in st rict mode"], |
129 restricted_function_properties: ["'caller' and 'arguments' are restricted func tion properties and cannot be accessed in this context."], | 129 restricted_function_properties: ["'caller' and 'arguments' are restricted func tion properties and cannot be accessed in this context."], |
130 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"], | 130 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"], |
131 strict_caller: ["Illegal access to a strict mode caller functi on."], | 131 strict_caller: ["Illegal access to a strict mode caller functi on."], |
132 strong_ellision: ["In strong mode, arrays with holes are depreca ted, use maps instead"], | 132 strong_ellision: ["In strong mode, arrays with holes are depreca ted, use maps instead"], |
133 strong_arguments: ["In strong mode, 'arguments' is deprecated, us e '...args' instead"], | 133 strong_arguments: ["In strong mode, 'arguments' is deprecated, us e '...args' instead"], |
134 strong_undefined: ["In strong mode, binding or assigning to 'unde fined' is deprecated"], | 134 strong_undefined: ["In strong mode, binding or assigning to 'unde fined' is deprecated"], |
135 strong_implicit_cast: ["In strong mode, implicit casts are deprecated "], | |
rossberg
2015/04/23 13:29:37
Nit: "casts" -> "conversions"
| |
135 strong_direct_eval: ["In strong mode, direct calls to eval are depr ecated"], | 136 strong_direct_eval: ["In strong mode, direct calls to eval are depr ecated"], |
136 strong_switch_fallthrough : ["In strong mode, switch fall-through is deprec ated, terminate each case with 'break', 'continue', 'return' or 'throw'"], | 137 strong_switch_fallthrough : ["In strong mode, switch fall-through is deprec ated, terminate each case with 'break', 'continue', 'return' or 'throw'"], |
137 strong_equal: ["In strong mode, '==' and '!=' are deprecated, use '===' and '!==' instead"], | 138 strong_equal: ["In strong mode, '==' and '!=' are deprecated, use '===' and '!==' instead"], |
138 strong_delete: ["In strong mode, 'delete' is deprecated, use m aps or sets instead"], | 139 strong_delete: ["In strong mode, 'delete' is deprecated, use m aps or sets instead"], |
139 strong_var: ["In strong mode, 'var' is deprecated, use 'let ' or 'const' instead"], | 140 strong_var: ["In strong mode, 'var' is deprecated, use 'let ' or 'const' instead"], |
140 strong_for_in: ["In strong mode, 'for'-'in' loops are deprecat ed, use 'for'-'of' instead"], | 141 strong_for_in: ["In strong mode, 'for'-'in' loops are deprecat ed, use 'for'-'of' instead"], |
141 strong_empty: ["In strong mode, empty sub-statements are depr ecated, make them explicit with '{}' instead"], | 142 strong_empty: ["In strong mode, empty sub-statements are depr ecated, make them explicit with '{}' instead"], |
142 strong_use_before_declaration: ["In strong mode, declaring variable '", "%0", "' before its use is required"], | 143 strong_use_before_declaration: ["In strong mode, declaring variable '", "%0", "' before its use is required"], |
143 strong_unbound_global: ["In strong mode, using an undeclared global va riable '", "%0", "' is not allowed"], | 144 strong_unbound_global: ["In strong mode, using an undeclared global va riable '", "%0", "' is not allowed"], |
144 strong_super_call_missing: ["In strong mode, invoking the super constructo r in a subclass is required"], | 145 strong_super_call_missing: ["In strong mode, invoking the super constructo r in a subclass is required"], |
(...skipping 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1265 function SetUpStackOverflowBoilerplate() { | 1266 function SetUpStackOverflowBoilerplate() { |
1266 var boilerplate = MakeRangeError(kStackOverflow); | 1267 var boilerplate = MakeRangeError(kStackOverflow); |
1267 | 1268 |
1268 %DefineAccessorPropertyUnchecked( | 1269 %DefineAccessorPropertyUnchecked( |
1269 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM); | 1270 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM); |
1270 | 1271 |
1271 return boilerplate; | 1272 return boilerplate; |
1272 } | 1273 } |
1273 | 1274 |
1274 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); | 1275 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); |
OLD | NEW |