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 $errorToString; | 7 var $errorToString; |
8 var $formatMessage; | 8 var $formatMessage; |
9 var $getStackTraceLine; | 9 var $getStackTraceLine; |
10 var $messageGetPositionInLine; | 10 var $messageGetPositionInLine; |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 unknown_label: ["Undefined label '", "%0", "'"], | 75 unknown_label: ["Undefined label '", "%0", "'"], |
76 uncaught_exception: ["Uncaught ", "%0"], | 76 uncaught_exception: ["Uncaught ", "%0"], |
77 undefined_method: ["Object ", "%1", " has no method '", "%0", "'"
], | 77 undefined_method: ["Object ", "%1", " has no method '", "%0", "'"
], |
78 not_defined: ["%0", " is not defined"], | 78 not_defined: ["%0", " is not defined"], |
79 non_method: ["'super' is referenced from non-method"], | 79 non_method: ["'super' is referenced from non-method"], |
80 unsupported_super: ["Unsupported reference to 'super'"], | 80 unsupported_super: ["Unsupported reference to 'super'"], |
81 non_object_property_load: ["Cannot read property '", "%0", "' of ", "%1"]
, | 81 non_object_property_load: ["Cannot read property '", "%0", "' of ", "%1"]
, |
82 non_object_property_store: ["Cannot set property '", "%0", "' of ", "%1"], | 82 non_object_property_store: ["Cannot set property '", "%0", "' of ", "%1"], |
83 illegal_invocation: ["Illegal invocation"], | 83 illegal_invocation: ["Illegal invocation"], |
84 no_setter_in_callback: ["Cannot set property ", "%0", " of ", "%1", "
which has only a getter"], | 84 no_setter_in_callback: ["Cannot set property ", "%0", " of ", "%1", "
which has only a getter"], |
85 flags_getter_non_object: ["RegExp.prototype.flags getter called on non-o
bject ", "%0"], | |
86 value_and_accessor: ["Invalid property. A property cannot both hav
e accessors and be writable or have a value, ", "%0"], | 85 value_and_accessor: ["Invalid property. A property cannot both hav
e accessors and be writable or have a value, ", "%0"], |
87 proto_object_or_null: ["Object prototype may only be an Object or nul
l: ", "%0"], | 86 proto_object_or_null: ["Object prototype may only be an Object or nul
l: ", "%0"], |
88 non_extensible_proto: ["%0", " is not extensible"], | 87 non_extensible_proto: ["%0", " is not extensible"], |
89 handler_non_object: ["Proxy.", "%0", " called with non-object as ha
ndler"], | 88 handler_non_object: ["Proxy.", "%0", " called with non-object as ha
ndler"], |
90 proto_non_object: ["Proxy.", "%0", " called with non-object as pr
ototype"], | 89 proto_non_object: ["Proxy.", "%0", " called with non-object as pr
ototype"], |
91 trap_function_expected: ["Proxy.", "%0", " called with non-function for
'", "%1", "' trap"], | 90 trap_function_expected: ["Proxy.", "%0", " called with non-function for
'", "%1", "' trap"], |
92 proxy_repeated_prop_name: ["Trap '", "%1", "' returned repeated property
name '", "%2", "'"], | 91 proxy_repeated_prop_name: ["Trap '", "%1", "' returned repeated property
name '", "%2", "'"], |
93 invalid_weakmap_key: ["Invalid value used as weak map key"], | 92 invalid_weakmap_key: ["Invalid value used as weak map key"], |
94 invalid_weakset_value: ["Invalid value used in weak set"], | 93 invalid_weakset_value: ["Invalid value used in weak set"], |
95 not_date_object: ["this is not a Date object."], | 94 not_date_object: ["this is not a Date object."], |
96 observe_non_object: ["Object.", "%0", " cannot ", "%0", " non-objec
t"], | |
97 observe_non_function: ["Object.", "%0", " cannot deliver to non-funct
ion"], | |
98 observe_callback_frozen: ["Object.observe cannot deliver to a frozen fun
ction object"], | |
99 observe_invalid_accept: ["Third argument to Object.observe must be an a
rray of strings."], | |
100 observe_type_non_string: ["Invalid changeRecord with non-string 'type' p
roperty"], | |
101 observe_perform_non_string: ["Invalid non-string changeType"], | |
102 observe_perform_non_function: ["Cannot perform non-function"], | |
103 observe_notify_non_notifier: ["notify called on non-notifier object"], | |
104 observe_global_proxy: ["%0", " cannot be called on the global proxy o
bject"], | |
105 not_typed_array: ["this is not a typed array."], | |
106 invalid_argument: ["invalid_argument"], | 95 invalid_argument: ["invalid_argument"], |
107 data_view_not_array_buffer: ["First argument to DataView constructor must b
e an ArrayBuffer"], | 96 data_view_not_array_buffer: ["First argument to DataView constructor must b
e an ArrayBuffer"], |
108 constructor_not_function: ["Constructor ", "%0", " requires 'new'"], | |
109 not_a_symbol: ["%0", " is not a symbol"], | 97 not_a_symbol: ["%0", " is not a symbol"], |
110 not_a_promise: ["%0", " is not a promise"], | 98 not_a_promise: ["%0", " is not a promise"], |
111 resolver_not_a_function: ["Promise resolver ", "%0", " is not a function
"], | 99 resolver_not_a_function: ["Promise resolver ", "%0", " is not a function
"], |
112 promise_cyclic: ["Chaining cycle detected for promise ", "%0"], | 100 promise_cyclic: ["Chaining cycle detected for promise ", "%0"], |
113 iterator_result_not_an_object: ["Iterator result ", "%0", " is not an object"]
, | |
114 iterator_value_not_an_object: ["Iterator value ", "%0", " is not an entry obj
ect"], | |
115 // RangeError | 101 // RangeError |
116 invalid_array_length: ["Invalid array length"], | 102 invalid_array_length: ["Invalid array length"], |
117 invalid_array_buffer_length: ["Invalid array buffer length"], | 103 invalid_array_buffer_length: ["Invalid array buffer length"], |
118 invalid_string_length: ["Invalid string length"], | 104 invalid_string_length: ["Invalid string length"], |
119 invalid_typed_array_offset: ["Start offset is too large:"], | 105 invalid_typed_array_offset: ["Start offset is too large:"], |
120 invalid_typed_array_length: ["Invalid typed array length"], | 106 invalid_typed_array_length: ["Invalid typed array length"], |
121 invalid_typed_array_alignment: ["%0", " of ", "%1", " should be a multiple of
", "%2"], | 107 invalid_typed_array_alignment: ["%0", " of ", "%1", " should be a multiple of
", "%2"], |
122 typed_array_set_source_too_large: | 108 typed_array_set_source_too_large: |
123 ["Source is too large"], | 109 ["Source is too large"], |
124 typed_array_set_negative_offset: | 110 typed_array_set_negative_offset: |
(...skipping 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1289 return MakeGenericError(GlobalTypeError, type, [arg]); | 1275 return MakeGenericError(GlobalTypeError, type, [arg]); |
1290 } | 1276 } |
1291 | 1277 |
1292 //Boilerplate for exceptions for stack overflows. Used from | 1278 //Boilerplate for exceptions for stack overflows. Used from |
1293 //Isolate::StackOverflow(). | 1279 //Isolate::StackOverflow(). |
1294 $stackOverflowBoilerplate = MakeRangeError(kStackOverflow); | 1280 $stackOverflowBoilerplate = MakeRangeError(kStackOverflow); |
1295 %DefineAccessorPropertyUnchecked($stackOverflowBoilerplate, 'stack', | 1281 %DefineAccessorPropertyUnchecked($stackOverflowBoilerplate, 'stack', |
1296 StackTraceGetter, StackTraceSetter, DONT_ENUM); | 1282 StackTraceGetter, StackTraceSetter, DONT_ENUM); |
1297 | 1283 |
1298 })(); | 1284 })(); |
OLD | NEW |