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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 constructor_not_function: ["Constructor ", "%0", " requires 'new'"], | 111 constructor_not_function: ["Constructor ", "%0", " requires 'new'"], |
112 not_a_promise: ["%0", " is not a promise"], | 112 not_a_promise: ["%0", " is not a promise"], |
113 resolver_not_a_function: ["Promise resolver ", "%0", " is not a function
"], | 113 resolver_not_a_function: ["Promise resolver ", "%0", " is not a function
"], |
114 promise_cyclic: ["Chaining cycle detected for promise ", "%0"], | 114 promise_cyclic: ["Chaining cycle detected for promise ", "%0"], |
115 array_functions_on_frozen: ["Cannot modify frozen array elements"], | 115 array_functions_on_frozen: ["Cannot modify frozen array elements"], |
116 array_functions_change_sealed: ["Cannot add/remove sealed array elements"], | 116 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"], | 117 first_argument_not_regexp: ["First argument to ", "%0", " must not be a re
gular expression"], |
118 // RangeError | 118 // RangeError |
119 invalid_array_length: ["Invalid array length"], | 119 invalid_array_length: ["Invalid array length"], |
120 invalid_array_buffer_length: ["Invalid array buffer length"], | 120 invalid_array_buffer_length: ["Invalid array buffer length"], |
| 121 invalid_string_length: ["Invalid string length"], |
121 invalid_typed_array_offset: ["Start offset is too large:"], | 122 invalid_typed_array_offset: ["Start offset is too large:"], |
122 invalid_typed_array_length: ["Invalid typed array length"], | 123 invalid_typed_array_length: ["Invalid typed array length"], |
123 invalid_typed_array_alignment: ["%0", "of", "%1", "should be a multiple of", "
%3"], | 124 invalid_typed_array_alignment: ["%0", "of", "%1", "should be a multiple of", "
%3"], |
124 typed_array_set_source_too_large: | 125 typed_array_set_source_too_large: |
125 ["Source is too large"], | 126 ["Source is too large"], |
126 typed_array_set_negative_offset: | 127 typed_array_set_negative_offset: |
127 ["Start offset is negative"], | 128 ["Start offset is negative"], |
128 invalid_data_view_offset: ["Start offset is outside the bounds of the buf
fer"], | 129 invalid_data_view_offset: ["Start offset is outside the bounds of the buf
fer"], |
129 invalid_data_view_length: ["Invalid data view length"], | 130 invalid_data_view_length: ["Invalid data view length"], |
130 invalid_data_view_accessor_offset: | 131 invalid_data_view_accessor_offset: |
(...skipping 1226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1357 %GetAndClearOverflowedStackTrace(this); | 1358 %GetAndClearOverflowedStackTrace(this); |
1358 }; | 1359 }; |
1359 | 1360 |
1360 %DefineOrRedefineAccessorProperty( | 1361 %DefineOrRedefineAccessorProperty( |
1361 boilerplate, 'stack', getter, setter, DONT_ENUM); | 1362 boilerplate, 'stack', getter, setter, DONT_ENUM); |
1362 | 1363 |
1363 return boilerplate; | 1364 return boilerplate; |
1364 } | 1365 } |
1365 | 1366 |
1366 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); | 1367 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); |
OLD | NEW |