• Home
  • Raw
  • Download

Lines Matching full:exception

36     // 1. If NewTarget is undefined, throw a TypeError exception.  in DataViewConstructor()
38 THROW_TYPE_ERROR_AND_RETURN(thread, "newtarget is undefined", JSTaggedValue::Exception()); in DataViewConstructor()
41 // 2. If Type(buffer) is not Object, throw a TypeError exception. in DataViewConstructor()
43 THROW_TYPE_ERROR_AND_RETURN(thread, "buffer is not Object", JSTaggedValue::Exception()); in DataViewConstructor()
45 // 3. If buffer does not have an [[ArrayBufferData]] internal slot, throw a TypeError exception. in DataViewConstructor()
47 … THROW_TYPE_ERROR_AND_RETURN(thread, "buffer is not ArrayBuffer", JSTaggedValue::Exception()); in DataViewConstructor()
55 // 7. If numberOffset ≠ offset or offset < 0, throw a RangeError exception. in DataViewConstructor()
57 THROW_RANGE_ERROR_AND_RETURN(thread, "Offset out of range", JSTaggedValue::Exception()); in DataViewConstructor()
60 // 8. If IsDetachedBuffer(buffer) is true, throw a TypeError exception. in DataViewConstructor()
62 … THROW_TYPE_ERROR_AND_RETURN(thread, "buffer is Detached Buffer", JSTaggedValue::Exception()); in DataViewConstructor()
67 // 10. If offset > bufferByteLength, throw a RangeError exception. in DataViewConstructor()
69 … THROW_RANGE_ERROR_AND_RETURN(thread, "offset > bufferByteLength", JSTaggedValue::Exception()); in DataViewConstructor()
82 // If offset+viewByteLength > bufferByteLength, throw a RangeError exception. in DataViewConstructor()
84 …OW_RANGE_ERROR_AND_RETURN(thread, "offset + viewByteLen > bufByteLen", JSTaggedValue::Exception()); in DataViewConstructor()
115 // 2. f Type(O) is not Object, throw a TypeError exception. in GetBuffer()
117 THROW_TYPE_ERROR_AND_RETURN(thread, "Type(O) is not Object", JSTaggedValue::Exception()); in GetBuffer()
119 // 3. If O does not have a [[ViewedArrayBuffer]] internal slot, throw a TypeError exception. in GetBuffer()
121 …PE_ERROR_AND_RETURN(thread, "O does not have a [[ViewedArrayBuffer]]", JSTaggedValue::Exception()); in GetBuffer()
139 // 2. If Type(O) is not Object, throw a TypeError exception. in GetByteLength()
141 THROW_TYPE_ERROR_AND_RETURN(thread, "Type(O) is not Object", JSTaggedValue::Exception()); in GetByteLength()
143 // 3. If O does not have a [[ViewedArrayBuffer]] internal slot, throw a TypeError exception. in GetByteLength()
145 …PE_ERROR_AND_RETURN(thread, "O does not have a [[ViewedArrayBuffer]]", JSTaggedValue::Exception()); in GetByteLength()
150 // 5. If IsDetachedBuffer(buffer) is true, throw a TypeError exception. in GetByteLength()
152 THROW_TYPE_ERROR_AND_RETURN(thread, "Is Detached Buffer", JSTaggedValue::Exception()); in GetByteLength()
169 // 2. If Type(O) is not Object, throw a TypeError exception. in GetOffset()
171 THROW_TYPE_ERROR_AND_RETURN(thread, "Type(O) is not Object", JSTaggedValue::Exception()); in GetOffset()
173 // 3. If O does not have a [[ViewedArrayBuffer]] internal slot, throw a TypeError exception. in GetOffset()
175 …PE_ERROR_AND_RETURN(thread, "O does not have a [[ViewedArrayBuffer]]", JSTaggedValue::Exception()); in GetOffset()
180 // 5. If IsDetachedBuffer(buffer) is true, throw a TypeError exception. in GetOffset()
182 THROW_TYPE_ERROR_AND_RETURN(thread, "Is Detached Buffer", JSTaggedValue::Exception()); in GetOffset()
308 // 1. If Type(view) is not Object, throw a TypeError exception. in GetViewValue()
310 THROW_TYPE_ERROR_AND_RETURN(thread, "Type(O) is not Object", JSTaggedValue::Exception()); in GetViewValue()
312 // 2. If view does not have a [[DataView]] internal slot, throw a TypeError exception. in GetViewValue()
314 THROW_TYPE_ERROR_AND_RETURN(thread, "view is not dataview", JSTaggedValue::Exception()); in GetViewValue()
321 // 6. If numberIndex ≠ getIndex or getIndex < 0, throw a RangeError exception. in GetViewValue()
323 THROW_RANGE_ERROR_AND_RETURN(thread, "getIndex < 0", JSTaggedValue::Exception()); in GetViewValue()
336 // 9. If IsDetachedBuffer(buffer) is true, throw a TypeError exception. in GetViewValue()
338 THROW_TYPE_ERROR_AND_RETURN(thread, "Is Detached Buffer", JSTaggedValue::Exception()); in GetViewValue()
346 // 13. If getIndex +elementSize > viewSize, throw a RangeError exception. in GetViewValue()
348 …ROW_RANGE_ERROR_AND_RETURN(thread, "getIndex +elementSize > viewSize", JSTaggedValue::Exception()); in GetViewValue()
361 // 1. If Type(view) is not Object, throw a TypeError exception. in SetViewValue()
364 THROW_TYPE_ERROR_AND_RETURN(thread, "Type(O) is not Object", JSTaggedValue::Exception()); in SetViewValue()
366 // 2. If view does not have a [[DataView]] internal slot, throw a TypeError exception. in SetViewValue()
368 THROW_TYPE_ERROR_AND_RETURN(thread, "view is not dataview", JSTaggedValue::Exception()); in SetViewValue()
375 // 6. If numberIndex ≠ getIndex or getIndex < 0, throw a RangeError exception. in SetViewValue()
377 THROW_RANGE_ERROR_AND_RETURN(thread, "getIndex < 0", JSTaggedValue::Exception()); in SetViewValue()
391 // 9. If IsDetachedBuffer(buffer) is true, throw a TypeError exception. in SetViewValue()
393 THROW_TYPE_ERROR_AND_RETURN(thread, "Is Detached Buffer", JSTaggedValue::Exception()); in SetViewValue()
401 // 13. If getIndex +elementSize > viewSize, throw a RangeError exception. in SetViewValue()
403 …ROW_RANGE_ERROR_AND_RETURN(thread, "getIndex +elementSize > viewSize", JSTaggedValue::Exception()); in SetViewValue()