Lines Matching full:exception
37 // 1. If NewTarget is undefined, throw a TypeError exception. in DataViewConstructor()
39 THROW_TYPE_ERROR_AND_RETURN(thread, "newtarget is undefined", JSTaggedValue::Exception()); in DataViewConstructor()
42 // 2. If Type(buffer) is not Object, throw a TypeError exception. in DataViewConstructor()
44 THROW_TYPE_ERROR_AND_RETURN(thread, "buffer is not Object", JSTaggedValue::Exception()); in DataViewConstructor()
46 // 3. If buffer does not have an [[ArrayBufferData]] internal slot, throw a TypeError exception. in DataViewConstructor()
48 … THROW_TYPE_ERROR_AND_RETURN(thread, "buffer is not ArrayBuffer", JSTaggedValue::Exception()); in DataViewConstructor()
56 // 7. If numberOffset ≠ offset or offset < 0, throw a RangeError exception. in DataViewConstructor()
58 THROW_RANGE_ERROR_AND_RETURN(thread, "Offset out of range", JSTaggedValue::Exception()); in DataViewConstructor()
61 // 8. If IsDetachedBuffer(buffer) is true, throw a TypeError exception. in DataViewConstructor()
63 … THROW_TYPE_ERROR_AND_RETURN(thread, "buffer is Detached Buffer", JSTaggedValue::Exception()); in DataViewConstructor()
68 // 10. If offset > bufferByteLength, throw a RangeError exception. in DataViewConstructor()
70 … THROW_RANGE_ERROR_AND_RETURN(thread, "offset > bufferByteLength", JSTaggedValue::Exception()); in DataViewConstructor()
83 // If offset+viewByteLength > bufferByteLength, throw a RangeError exception. in DataViewConstructor()
85 …OW_RANGE_ERROR_AND_RETURN(thread, "offset + viewByteLen > bufByteLen", JSTaggedValue::Exception()); in DataViewConstructor()
116 // 2. f Type(O) is not Object, throw a TypeError exception. in GetBuffer()
118 THROW_TYPE_ERROR_AND_RETURN(thread, "Type(O) is not Object", JSTaggedValue::Exception()); in GetBuffer()
120 // 3. If O does not have a [[ViewedArrayBuffer]] internal slot, throw a TypeError exception. in GetBuffer()
122 …PE_ERROR_AND_RETURN(thread, "O does not have a [[ViewedArrayBuffer]]", JSTaggedValue::Exception()); in GetBuffer()
140 // 2. If Type(O) is not Object, throw a TypeError exception. in GetByteLength()
142 THROW_TYPE_ERROR_AND_RETURN(thread, "Type(O) is not Object", JSTaggedValue::Exception()); in GetByteLength()
144 // 3. If O does not have a [[ViewedArrayBuffer]] internal slot, throw a TypeError exception. in GetByteLength()
146 …PE_ERROR_AND_RETURN(thread, "O does not have a [[ViewedArrayBuffer]]", JSTaggedValue::Exception()); in GetByteLength()
151 // 5. If IsDetachedBuffer(buffer) is true, throw a TypeError exception. in GetByteLength()
153 THROW_TYPE_ERROR_AND_RETURN(thread, "Is Detached Buffer", JSTaggedValue::Exception()); in GetByteLength()
170 // 2. If Type(O) is not Object, throw a TypeError exception. in GetOffset()
172 THROW_TYPE_ERROR_AND_RETURN(thread, "Type(O) is not Object", JSTaggedValue::Exception()); in GetOffset()
174 // 3. If O does not have a [[ViewedArrayBuffer]] internal slot, throw a TypeError exception. in GetOffset()
176 …PE_ERROR_AND_RETURN(thread, "O does not have a [[ViewedArrayBuffer]]", JSTaggedValue::Exception()); in GetOffset()
181 // 5. If IsDetachedBuffer(buffer) is true, throw a TypeError exception. in GetOffset()
183 THROW_TYPE_ERROR_AND_RETURN(thread, "Is Detached Buffer", JSTaggedValue::Exception()); in GetOffset()
334 // 1. If Type(view) is not Object, throw a TypeError exception. in GetViewValue()
336 THROW_TYPE_ERROR_AND_RETURN(thread, "Type(O) is not Object", JSTaggedValue::Exception()); in GetViewValue()
338 // 2. If view does not have a [[DataView]] internal slot, throw a TypeError exception. in GetViewValue()
340 THROW_TYPE_ERROR_AND_RETURN(thread, "view is not dataview", JSTaggedValue::Exception()); in GetViewValue()
347 // 6. If numberIndex ≠ getIndex or getIndex < 0, throw a RangeError exception. in GetViewValue()
349 THROW_RANGE_ERROR_AND_RETURN(thread, "getIndex < 0", JSTaggedValue::Exception()); in GetViewValue()
362 // 9. If IsDetachedBuffer(buffer) is true, throw a TypeError exception. in GetViewValue()
364 THROW_TYPE_ERROR_AND_RETURN(thread, "Is Detached Buffer", JSTaggedValue::Exception()); in GetViewValue()
372 // 13. If getIndex +elementSize > viewSize, throw a RangeError exception. in GetViewValue()
374 …ROW_RANGE_ERROR_AND_RETURN(thread, "getIndex +elementSize > viewSize", JSTaggedValue::Exception()); in GetViewValue()
387 // 1. If Type(view) is not Object, throw a TypeError exception. in SetViewValue()
390 THROW_TYPE_ERROR_AND_RETURN(thread, "Type(O) is not Object", JSTaggedValue::Exception()); in SetViewValue()
392 // 2. If view does not have a [[DataView]] internal slot, throw a TypeError exception. in SetViewValue()
394 THROW_TYPE_ERROR_AND_RETURN(thread, "view is not dataview", JSTaggedValue::Exception()); in SetViewValue()
401 // 6. If numberIndex ≠ getIndex or getIndex < 0, throw a RangeError exception. in SetViewValue()
403 THROW_RANGE_ERROR_AND_RETURN(thread, "getIndex < 0", JSTaggedValue::Exception()); in SetViewValue()
417 // 9. If IsDetachedBuffer(buffer) is true, throw a TypeError exception. in SetViewValue()
419 THROW_TYPE_ERROR_AND_RETURN(thread, "Is Detached Buffer", JSTaggedValue::Exception()); in SetViewValue()
427 // 13. If getIndex +elementSize > viewSize, throw a RangeError exception. in SetViewValue()
429 …ROW_RANGE_ERROR_AND_RETURN(thread, "getIndex +elementSize > viewSize", JSTaggedValue::Exception()); in SetViewValue()