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 cyclic_proto: ["Cyclic __proto__ value"], | 9 cyclic_proto: ["Cyclic __proto__ value"], |
10 code_gen_from_strings: ["%0"], | 10 code_gen_from_strings: ["%0"], |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 invalid_argument: ["invalid_argument"], | 82 invalid_argument: ["invalid_argument"], |
83 data_view_not_array_buffer: ["First argument to DataView constructor must b
e an ArrayBuffer"], | 83 data_view_not_array_buffer: ["First argument to DataView constructor must b
e an ArrayBuffer"], |
84 constructor_not_function: ["Constructor ", "%0", " requires 'new'"], | 84 constructor_not_function: ["Constructor ", "%0", " requires 'new'"], |
85 not_a_symbol: ["%0", " is not a symbol"], | 85 not_a_symbol: ["%0", " is not a symbol"], |
86 not_a_promise: ["%0", " is not a promise"], | 86 not_a_promise: ["%0", " is not a promise"], |
87 resolver_not_a_function: ["Promise resolver ", "%0", " is not a function
"], | 87 resolver_not_a_function: ["Promise resolver ", "%0", " is not a function
"], |
88 promise_cyclic: ["Chaining cycle detected for promise ", "%0"], | 88 promise_cyclic: ["Chaining cycle detected for promise ", "%0"], |
89 array_functions_on_frozen: ["Cannot modify frozen array elements"], | 89 array_functions_on_frozen: ["Cannot modify frozen array elements"], |
90 array_functions_change_sealed: ["Cannot add/remove sealed array elements"], | 90 array_functions_change_sealed: ["Cannot add/remove sealed array elements"], |
91 first_argument_not_regexp: ["First argument to ", "%0", " must not be a re
gular expression"], | 91 first_argument_not_regexp: ["First argument to ", "%0", " must not be a re
gular expression"], |
| 92 not_iterable: ["%0", " is not iterable"], |
| 93 not_an_iterator: ["%0", " is not an iterator"], |
| 94 iterator_result_not_an_object: ["Iterator result ", "%0", " is not an object"]
, |
| 95 iterator_value_not_an_object: ["Iterator value ", "%0", " is not an entry obj
ect"], |
92 // RangeError | 96 // RangeError |
93 invalid_array_length: ["Invalid array length"], | 97 invalid_array_length: ["Invalid array length"], |
94 invalid_array_buffer_length: ["Invalid array buffer length"], | 98 invalid_array_buffer_length: ["Invalid array buffer length"], |
95 invalid_string_length: ["Invalid string length"], | 99 invalid_string_length: ["Invalid string length"], |
96 invalid_typed_array_offset: ["Start offset is too large:"], | 100 invalid_typed_array_offset: ["Start offset is too large:"], |
97 invalid_typed_array_length: ["Invalid typed array length"], | 101 invalid_typed_array_length: ["Invalid typed array length"], |
98 invalid_typed_array_alignment: ["%0", " of ", "%1", " should be a multiple of
", "%2"], | 102 invalid_typed_array_alignment: ["%0", " of ", "%1", " should be a multiple of
", "%2"], |
99 typed_array_set_source_too_large: | 103 typed_array_set_source_too_large: |
100 ["Source is too large"], | 104 ["Source is too large"], |
101 typed_array_set_negative_offset: | 105 typed_array_set_negative_offset: |
(...skipping 1232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1334 return result; | 1338 return result; |
1335 }; | 1339 }; |
1336 | 1340 |
1337 %DefineOrRedefineAccessorProperty( | 1341 %DefineOrRedefineAccessorProperty( |
1338 boilerplate, 'stack', getter, setter, DONT_ENUM); | 1342 boilerplate, 'stack', getter, setter, DONT_ENUM); |
1339 | 1343 |
1340 return boilerplate; | 1344 return boilerplate; |
1341 } | 1345 } |
1342 | 1346 |
1343 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); | 1347 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); |
OLD | NEW |