• Home
  • Raw
  • Download

Lines Matching full:exception

31     // 1. If NewTarget is undefined, throw a TypeError exception.  in DataViewConstructor()
33 THROW_TYPE_ERROR_AND_RETURN(thread, "newtarget is undefined", JSTaggedValue::Exception()); in DataViewConstructor()
36 // 2. If Type(buffer) is not Object, throw a TypeError exception. in DataViewConstructor()
38 THROW_TYPE_ERROR_AND_RETURN(thread, "buffer is not Object", JSTaggedValue::Exception()); in DataViewConstructor()
40 // 3. If buffer does not have an [[ArrayBufferData]] internal slot, throw a TypeError exception. in DataViewConstructor()
42 … THROW_TYPE_ERROR_AND_RETURN(thread, "buffer is not ArrayBuffer", JSTaggedValue::Exception()); in DataViewConstructor()
50 // 7. If IsDetachedBuffer(buffer) is true, throw a TypeError exception. in DataViewConstructor()
52 … THROW_TYPE_ERROR_AND_RETURN(thread, "buffer is Detached Buffer", JSTaggedValue::Exception()); in DataViewConstructor()
57 // 9. If offset > bufferByteLength, throw a RangeError exception. in DataViewConstructor()
59 … THROW_RANGE_ERROR_AND_RETURN(thread, "offset > bufferByteLength", JSTaggedValue::Exception()); in DataViewConstructor()
72 // If offset+viewByteLength > bufferByteLength, throw a RangeError exception. in DataViewConstructor()
74 …OW_RANGE_ERROR_AND_RETURN(thread, "offset + viewByteLen > bufByteLen", JSTaggedValue::Exception()); in DataViewConstructor()
105 // 2. f Type(O) is not Object, throw a TypeError exception. in GetBuffer()
107 THROW_TYPE_ERROR_AND_RETURN(thread, "Type(O) is not Object", JSTaggedValue::Exception()); in GetBuffer()
109 // 3. If O does not have a [[ViewedArrayBuffer]] internal slot, throw a TypeError exception. in GetBuffer()
111 …PE_ERROR_AND_RETURN(thread, "O does not have a [[ViewedArrayBuffer]]", JSTaggedValue::Exception()); in GetBuffer()
129 // 2. If Type(O) is not Object, throw a TypeError exception. in GetByteLength()
131 THROW_TYPE_ERROR_AND_RETURN(thread, "Type(O) is not Object", JSTaggedValue::Exception()); in GetByteLength()
133 // 3. If O does not have a [[ViewedArrayBuffer]] internal slot, throw a TypeError exception. in GetByteLength()
135 …PE_ERROR_AND_RETURN(thread, "O does not have a [[ViewedArrayBuffer]]", JSTaggedValue::Exception()); in GetByteLength()
140 // 5. If IsDetachedBuffer(buffer) is true, throw a TypeError exception. in GetByteLength()
142 THROW_TYPE_ERROR_AND_RETURN(thread, "Is Detached Buffer", JSTaggedValue::Exception()); in GetByteLength()
159 // 2. If Type(O) is not Object, throw a TypeError exception. in GetOffset()
161 THROW_TYPE_ERROR_AND_RETURN(thread, "Type(O) is not Object", JSTaggedValue::Exception()); in GetOffset()
163 // 3. If O does not have a [[ViewedArrayBuffer]] internal slot, throw a TypeError exception. in GetOffset()
165 …PE_ERROR_AND_RETURN(thread, "O does not have a [[ViewedArrayBuffer]]", JSTaggedValue::Exception()); in GetOffset()
170 // 5. If IsDetachedBuffer(buffer) is true, throw a TypeError exception. in GetOffset()
172 THROW_TYPE_ERROR_AND_RETURN(thread, "Is Detached Buffer", JSTaggedValue::Exception()); in GetOffset()
344 // 1. If Type(view) is not Object, throw a TypeError exception. in GetViewValue()
346 THROW_TYPE_ERROR_AND_RETURN(thread, "Type(O) is not Object", JSTaggedValue::Exception()); in GetViewValue()
348 // 2. If view does not have a [[DataView]] internal slot, throw a TypeError exception. in GetViewValue()
350 THROW_TYPE_ERROR_AND_RETURN(thread, "view is not dataview", JSTaggedValue::Exception()); in GetViewValue()
358 THROW_RANGE_ERROR_AND_RETURN(thread, "getIndex < 0", JSTaggedValue::Exception()); in GetViewValue()
378 // 9. If IsDetachedBuffer(buffer) is true, throw a TypeError exception. in GetViewValue()
380 THROW_TYPE_ERROR_AND_RETURN(thread, "Is Detached Buffer", JSTaggedValue::Exception()); in GetViewValue()
388 // 13. If getIndex +elementSize > viewSize, throw a RangeError exception. in GetViewValue()
390 …ROW_RANGE_ERROR_AND_RETURN(thread, "getIndex +elementSize > viewSize", JSTaggedValue::Exception()); in GetViewValue()
404 // 1. If Type(view) is not Object, throw a TypeError exception. in SetViewValue()
407 THROW_TYPE_ERROR_AND_RETURN(thread, "Type(O) is not Object", JSTaggedValue::Exception()); in SetViewValue()
409 // 2. If view does not have a [[DataView]] internal slot, throw a TypeError exception. in SetViewValue()
411 THROW_TYPE_ERROR_AND_RETURN(thread, "view is not dataview", JSTaggedValue::Exception()); in SetViewValue()
417 // If numberIndex ≠ getIndex or getIndex < 0, throw a RangeError exception. in SetViewValue()
419 THROW_RANGE_ERROR_AND_RETURN(thread, "getIndex < 0", JSTaggedValue::Exception()); in SetViewValue()
444 // 9. If IsDetachedBuffer(buffer) is true, throw a TypeError exception. in SetViewValue()
446 THROW_TYPE_ERROR_AND_RETURN(thread, "Is Detached Buffer", JSTaggedValue::Exception()); in SetViewValue()
454 // 13. If getIndex +elementSize > viewSize, throw a RangeError exception. in SetViewValue()
456 …ROW_RANGE_ERROR_AND_RETURN(thread, "getIndex +elementSize > viewSize", JSTaggedValue::Exception()); in SetViewValue()