| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 no_input_to_regexp: ["No input to ", "%0"], | 148 no_input_to_regexp: ["No input to ", "%0"], |
| 149 invalid_json: ["String '", "%0", "' is not valid JSON"], | 149 invalid_json: ["String '", "%0", "' is not valid JSON"], |
| 150 circular_structure: ["Converting circular structure to JSON"], | 150 circular_structure: ["Converting circular structure to JSON"], |
| 151 called_on_non_object: ["%0", " called on non-object"], | 151 called_on_non_object: ["%0", " called on non-object"], |
| 152 called_on_null_or_undefined: ["%0", " called on null or undefined"], | 152 called_on_null_or_undefined: ["%0", " called on null or undefined"], |
| 153 array_indexof_not_defined: ["Array.getIndexOf: Argument undefined"], | 153 array_indexof_not_defined: ["Array.getIndexOf: Argument undefined"], |
| 154 object_not_extensible: ["Can't add property ", "%0", ", object is not
extensible"], | 154 object_not_extensible: ["Can't add property ", "%0", ", object is not
extensible"], |
| 155 illegal_access: ["Illegal access"], | 155 illegal_access: ["Illegal access"], |
| 156 invalid_preparser_data: ["Invalid preparser data for function ", "%0"], | 156 invalid_preparser_data: ["Invalid preparser data for function ", "%0"], |
| 157 strict_mode_with: ["Strict mode code may not include a with state
ment"], | 157 strict_mode_with: ["Strict mode code may not include a with state
ment"], |
| 158 strict_catch_variable: ["Catch variable may not be eval or arguments i
n strict mode"], | 158 strict_eval_arguments: ["Unexpected eval or arguments in strict mode"]
, |
| 159 too_many_arguments: ["Too many arguments in function call (only 327
66 allowed)"], | 159 too_many_arguments: ["Too many arguments in function call (only 327
66 allowed)"], |
| 160 too_many_parameters: ["Too many parameters in function definition (o
nly 32766 allowed)"], | 160 too_many_parameters: ["Too many parameters in function definition (o
nly 32766 allowed)"], |
| 161 too_many_variables: ["Too many variables declared (only 131071 allo
wed)"], | 161 too_many_variables: ["Too many variables declared (only 131071 allo
wed)"], |
| 162 strict_param_name: ["Parameter name eval or arguments is not allow
ed in strict mode"], | |
| 163 strict_param_dupe: ["Strict mode function may not have duplicate p
arameter names"], | 162 strict_param_dupe: ["Strict mode function may not have duplicate p
arameter names"], |
| 164 strict_var_name: ["Variable name may not be eval or arguments in
strict mode"], | |
| 165 strict_function_name: ["Function name may not be eval or arguments in
strict mode"], | |
| 166 strict_octal_literal: ["Octal literals are not allowed in strict mode
."], | 163 strict_octal_literal: ["Octal literals are not allowed in strict mode
."], |
| 167 strict_duplicate_property: ["Duplicate data property in object literal not
allowed in strict mode"], | 164 strict_duplicate_property: ["Duplicate data property in object literal not
allowed in strict mode"], |
| 168 accessor_data_property: ["Object literal may not have data and accessor
property with the same name"], | 165 accessor_data_property: ["Object literal may not have data and accessor
property with the same name"], |
| 169 accessor_get_set: ["Object literal may not have multiple get/set
accessors with the same name"], | 166 accessor_get_set: ["Object literal may not have multiple get/set
accessors with the same name"], |
| 170 strict_lhs_assignment: ["Assignment to eval or arguments is not allowe
d in strict mode"], | |
| 171 strict_lhs_postfix: ["Postfix increment/decrement may not have eval
or arguments operand in strict mode"], | |
| 172 strict_lhs_prefix: ["Prefix increment/decrement may not have eval
or arguments operand in strict mode"], | |
| 173 strict_delete: ["Delete of an unqualified identifier in strict
mode."], | 167 strict_delete: ["Delete of an unqualified identifier in strict
mode."], |
| 174 strict_delete_property: ["Cannot delete property '", "%0", "' of ", "%1
"], | 168 strict_delete_property: ["Cannot delete property '", "%0", "' of ", "%1
"], |
| 175 strict_const: ["Use of const in strict mode."], | 169 strict_const: ["Use of const in strict mode."], |
| 176 strict_function: ["In strict mode code, functions can only be de
clared at top level or immediately within another function." ], | 170 strict_function: ["In strict mode code, functions can only be de
clared at top level or immediately within another function." ], |
| 177 strict_read_only_property: ["Cannot assign to read only property '", "%0",
"' of ", "%1"], | 171 strict_read_only_property: ["Cannot assign to read only property '", "%0",
"' of ", "%1"], |
| 178 strict_cannot_assign: ["Cannot assign to read only '", "%0", "' in st
rict mode"], | 172 strict_cannot_assign: ["Cannot assign to read only '", "%0", "' in st
rict mode"], |
| 179 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"], | 173 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"], |
| 180 strict_caller: ["Illegal access to a strict mode caller functi
on."], | 174 strict_caller: ["Illegal access to a strict mode caller functi
on."], |
| 181 unprotected_let: ["Illegal let declaration in unprotected statem
ent context."], | 175 unprotected_let: ["Illegal let declaration in unprotected statem
ent context."], |
| 182 unprotected_const: ["Illegal const declaration in unprotected stat
ement context."], | 176 unprotected_const: ["Illegal const declaration in unprotected stat
ement context."], |
| (...skipping 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1357 %GetAndClearOverflowedStackTrace(this); | 1351 %GetAndClearOverflowedStackTrace(this); |
| 1358 }; | 1352 }; |
| 1359 | 1353 |
| 1360 %DefineOrRedefineAccessorProperty( | 1354 %DefineOrRedefineAccessorProperty( |
| 1361 boilerplate, 'stack', getter, setter, DONT_ENUM); | 1355 boilerplate, 'stack', getter, setter, DONT_ENUM); |
| 1362 | 1356 |
| 1363 return boilerplate; | 1357 return boilerplate; |
| 1364 } | 1358 } |
| 1365 | 1359 |
| 1366 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); | 1360 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); |
| OLD | NEW |