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