| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 invalid_weakset_value: ["Invalid value used in weak set"], | 97 invalid_weakset_value: ["Invalid value used in weak set"], |
| 98 not_date_object: ["this is not a Date object."], | 98 not_date_object: ["this is not a Date object."], |
| 99 observe_non_object: ["Object.", "%0", " cannot ", "%0", " non-objec
t"], | 99 observe_non_object: ["Object.", "%0", " cannot ", "%0", " non-objec
t"], |
| 100 observe_non_function: ["Object.", "%0", " cannot deliver to non-funct
ion"], | 100 observe_non_function: ["Object.", "%0", " cannot deliver to non-funct
ion"], |
| 101 observe_callback_frozen: ["Object.observe cannot deliver to a frozen fun
ction object"], | 101 observe_callback_frozen: ["Object.observe cannot deliver to a frozen fun
ction object"], |
| 102 observe_invalid_accept: ["Object.observe accept must be an array of str
ings."], | 102 observe_invalid_accept: ["Object.observe accept must be an array of str
ings."], |
| 103 observe_type_non_string: ["Invalid changeRecord with non-string 'type' p
roperty"], | 103 observe_type_non_string: ["Invalid changeRecord with non-string 'type' p
roperty"], |
| 104 observe_perform_non_string: ["Invalid non-string changeType"], | 104 observe_perform_non_string: ["Invalid non-string changeType"], |
| 105 observe_perform_non_function: ["Cannot perform non-function"], | 105 observe_perform_non_function: ["Cannot perform non-function"], |
| 106 observe_notify_non_notifier: ["notify called on non-notifier object"], | 106 observe_notify_non_notifier: ["notify called on non-notifier object"], |
| 107 proto_poison_pill: ["Generic use of __proto__ accessor not allowed
"], | |
| 108 not_typed_array: ["this is not a typed array."], | 107 not_typed_array: ["this is not a typed array."], |
| 109 invalid_argument: ["invalid_argument"], | 108 invalid_argument: ["invalid_argument"], |
| 110 data_view_not_array_buffer: ["First argument to DataView constructor must b
e an ArrayBuffer"], | 109 data_view_not_array_buffer: ["First argument to DataView constructor must b
e an ArrayBuffer"], |
| 111 constructor_not_function: ["Constructor ", "%0", " requires 'new'"], | 110 constructor_not_function: ["Constructor ", "%0", " requires 'new'"], |
| 112 not_a_promise: ["%0", " is not a promise"], | 111 not_a_promise: ["%0", " is not a promise"], |
| 113 resolver_not_a_function: ["Promise resolver ", "%0", " is not a function
"], | 112 resolver_not_a_function: ["Promise resolver ", "%0", " is not a function
"], |
| 114 promise_cyclic: ["Chaining cycle detected for promise ", "%0"], | 113 promise_cyclic: ["Chaining cycle detected for promise ", "%0"], |
| 115 array_functions_on_frozen: ["Cannot modify frozen array elements"], | 114 array_functions_on_frozen: ["Cannot modify frozen array elements"], |
| 116 array_functions_change_sealed: ["Cannot add/remove sealed array elements"], | 115 array_functions_change_sealed: ["Cannot add/remove sealed array elements"], |
| 117 first_argument_not_regexp: ["First argument to ", "%0", " must not be a re
gular expression"], | 116 first_argument_not_regexp: ["First argument to ", "%0", " must not be a re
gular expression"], |
| (...skipping 30 matching lines...) Expand all Loading... |
| 148 no_input_to_regexp: ["No input to ", "%0"], | 147 no_input_to_regexp: ["No input to ", "%0"], |
| 149 invalid_json: ["String '", "%0", "' is not valid JSON"], | 148 invalid_json: ["String '", "%0", "' is not valid JSON"], |
| 150 circular_structure: ["Converting circular structure to JSON"], | 149 circular_structure: ["Converting circular structure to JSON"], |
| 151 called_on_non_object: ["%0", " called on non-object"], | 150 called_on_non_object: ["%0", " called on non-object"], |
| 152 called_on_null_or_undefined: ["%0", " called on null or undefined"], | 151 called_on_null_or_undefined: ["%0", " called on null or undefined"], |
| 153 array_indexof_not_defined: ["Array.getIndexOf: Argument undefined"], | 152 array_indexof_not_defined: ["Array.getIndexOf: Argument undefined"], |
| 154 object_not_extensible: ["Can't add property ", "%0", ", object is not
extensible"], | 153 object_not_extensible: ["Can't add property ", "%0", ", object is not
extensible"], |
| 155 illegal_access: ["Illegal access"], | 154 illegal_access: ["Illegal access"], |
| 156 invalid_preparser_data: ["Invalid preparser data for function ", "%0"], | 155 invalid_preparser_data: ["Invalid preparser data for function ", "%0"], |
| 157 strict_mode_with: ["Strict mode code may not include a with state
ment"], | 156 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"], | 157 strict_eval_arguments: ["Unexpected eval or arguments in strict mode"]
, |
| 159 too_many_arguments: ["Too many arguments in function call (only 327
66 allowed)"], | 158 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)"], | 159 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)"], | 160 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"], | 161 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
."], | 162 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"], | 163 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"], | 164 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"], | 165 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_reserved_word: ["Use of future reserved word in strict mode"], | |
| 174 strict_delete: ["Delete of an unqualified identifier in strict
mode."], | 166 strict_delete: ["Delete of an unqualified identifier in strict
mode."], |
| 175 strict_delete_property: ["Cannot delete property '", "%0", "' of ", "%1
"], | 167 strict_delete_property: ["Cannot delete property '", "%0", "' of ", "%1
"], |
| 176 strict_const: ["Use of const in strict mode."], | 168 strict_const: ["Use of const in strict mode."], |
| 177 strict_function: ["In strict mode code, functions can only be de
clared at top level or immediately within another function." ], | 169 strict_function: ["In strict mode code, functions can only be de
clared at top level or immediately within another function." ], |
| 178 strict_read_only_property: ["Cannot assign to read only property '", "%0",
"' of ", "%1"], | 170 strict_read_only_property: ["Cannot assign to read only property '", "%0",
"' of ", "%1"], |
| 179 strict_cannot_assign: ["Cannot assign to read only '", "%0", "' in st
rict mode"], | 171 strict_cannot_assign: ["Cannot assign to read only '", "%0", "' in st
rict mode"], |
| 180 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"], | 172 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"], |
| 181 strict_caller: ["Illegal access to a strict mode caller functi
on."], | 173 strict_caller: ["Illegal access to a strict mode caller functi
on."], |
| 182 unprotected_let: ["Illegal let declaration in unprotected statem
ent context."], | 174 unprotected_let: ["Illegal let declaration in unprotected statem
ent context."], |
| 183 unprotected_const: ["Illegal const declaration in unprotected stat
ement context."], | 175 unprotected_const: ["Illegal const declaration in unprotected stat
ement context."], |
| (...skipping 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1358 %GetAndClearOverflowedStackTrace(this); | 1350 %GetAndClearOverflowedStackTrace(this); |
| 1359 }; | 1351 }; |
| 1360 | 1352 |
| 1361 %DefineOrRedefineAccessorProperty( | 1353 %DefineOrRedefineAccessorProperty( |
| 1362 boilerplate, 'stack', getter, setter, DONT_ENUM); | 1354 boilerplate, 'stack', getter, setter, DONT_ENUM); |
| 1363 | 1355 |
| 1364 return boilerplate; | 1356 return boilerplate; |
| 1365 } | 1357 } |
| 1366 | 1358 |
| 1367 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); | 1359 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); |
| OLD | NEW |