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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 invalid_weakset_value: ["Invalid value used in weak set"], | 70 invalid_weakset_value: ["Invalid value used in weak set"], |
71 not_date_object: ["this is not a Date object."], | 71 not_date_object: ["this is not a Date object."], |
72 observe_non_object: ["Object.", "%0", " cannot ", "%0", " non-objec
t"], | 72 observe_non_object: ["Object.", "%0", " cannot ", "%0", " non-objec
t"], |
73 observe_non_function: ["Object.", "%0", " cannot deliver to non-funct
ion"], | 73 observe_non_function: ["Object.", "%0", " cannot deliver to non-funct
ion"], |
74 observe_callback_frozen: ["Object.observe cannot deliver to a frozen fun
ction object"], | 74 observe_callback_frozen: ["Object.observe cannot deliver to a frozen fun
ction object"], |
75 observe_invalid_accept: ["Object.observe accept must be an array of str
ings."], | 75 observe_invalid_accept: ["Object.observe accept must be an array of str
ings."], |
76 observe_type_non_string: ["Invalid changeRecord with non-string 'type' p
roperty"], | 76 observe_type_non_string: ["Invalid changeRecord with non-string 'type' p
roperty"], |
77 observe_perform_non_string: ["Invalid non-string changeType"], | 77 observe_perform_non_string: ["Invalid non-string changeType"], |
78 observe_perform_non_function: ["Cannot perform non-function"], | 78 observe_perform_non_function: ["Cannot perform non-function"], |
79 observe_notify_non_notifier: ["notify called on non-notifier object"], | 79 observe_notify_non_notifier: ["notify called on non-notifier object"], |
| 80 observe_global_proxy: ["%0", " cannot be called on the global proxy o
bject"], |
80 not_typed_array: ["this is not a typed array."], | 81 not_typed_array: ["this is not a typed array."], |
81 invalid_argument: ["invalid_argument"], | 82 invalid_argument: ["invalid_argument"], |
82 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"], |
83 constructor_not_function: ["Constructor ", "%0", " requires 'new'"], | 84 constructor_not_function: ["Constructor ", "%0", " requires 'new'"], |
84 not_a_symbol: ["%0", " is not a symbol"], | 85 not_a_symbol: ["%0", " is not a symbol"], |
85 not_a_promise: ["%0", " is not a promise"], | 86 not_a_promise: ["%0", " is not a promise"], |
86 resolver_not_a_function: ["Promise resolver ", "%0", " is not a function
"], | 87 resolver_not_a_function: ["Promise resolver ", "%0", " is not a function
"], |
87 promise_cyclic: ["Chaining cycle detected for promise ", "%0"], | 88 promise_cyclic: ["Chaining cycle detected for promise ", "%0"], |
88 array_functions_on_frozen: ["Cannot modify frozen array elements"], | 89 array_functions_on_frozen: ["Cannot modify frozen array elements"], |
89 array_functions_change_sealed: ["Cannot add/remove sealed array elements"], | 90 array_functions_change_sealed: ["Cannot add/remove sealed array elements"], |
(...skipping 1239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1329 return result; | 1330 return result; |
1330 }; | 1331 }; |
1331 | 1332 |
1332 %DefineOrRedefineAccessorProperty( | 1333 %DefineOrRedefineAccessorProperty( |
1333 boilerplate, 'stack', getter, setter, DONT_ENUM); | 1334 boilerplate, 'stack', getter, setter, DONT_ENUM); |
1334 | 1335 |
1335 return boilerplate; | 1336 return boilerplate; |
1336 } | 1337 } |
1337 | 1338 |
1338 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); | 1339 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); |
OLD | NEW |