• Home
  • Raw
  • Download

Lines Matching full:exception

43     // 1. If NewTarget is undefined, throw a TypeError exception.  in ArrayBufferConstructor()
45 THROW_TYPE_ERROR_AND_RETURN(thread, "newtarget is undefined", JSTaggedValue::Exception()); in ArrayBufferConstructor()
87 // 2. If Type(O) is not Object, throw a TypeError exception. in GetByteLength()
89 … THROW_TYPE_ERROR_AND_RETURN(thread, "this value is not an object", JSTaggedValue::Exception()); in GetByteLength()
91 // 3. If O does not have an [[ArrayBufferData]] internal slot, throw a TypeError exception. in GetByteLength()
93 THROW_TYPE_ERROR_AND_RETURN(thread, "don't have internal slot", JSTaggedValue::Exception()); in GetByteLength()
95 // 4. If IsDetachedBuffer(O) is true, throw a TypeError exception. in GetByteLength()
97 THROW_TYPE_ERROR_AND_RETURN(thread, "IsDetachedBuffer", JSTaggedValue::Exception()); in GetByteLength()
117 // 2. If Type(O) is not Object, throw a TypeError exception. in Slice()
119 … THROW_TYPE_ERROR_AND_RETURN(thread, "this value is not an object", JSTaggedValue::Exception()); in Slice()
122 // 3. If O does not have an [[ArrayBufferData]] internal slot, throw a TypeError exception. in Slice()
124 THROW_TYPE_ERROR_AND_RETURN(thread, "don't have internal slot", JSTaggedValue::Exception()); in Slice()
126 // 4. If IsDetachedBuffer(O) is true, throw a TypeError exception. in Slice()
128 … THROW_TYPE_ERROR_AND_RETURN(thread, "this value IsDetachedBuffer", JSTaggedValue::Exception()); in Slice()
179 // 17. If new does not have an [[ArrayBufferData]] internal slot, throw a TypeError exception. in Slice()
181 …W_TYPE_ERROR_AND_RETURN(thread, "don't have bufferdata internal slot", JSTaggedValue::Exception()); in Slice()
183 // 18. If IsDetachedBuffer(new) is true, throw a TypeError exception. in Slice()
185 …HROW_TYPE_ERROR_AND_RETURN(thread, "new arrayBuffer IsDetachedBuffer", JSTaggedValue::Exception()); in Slice()
187 // 19. If SameValue(new, O) is true, throw a TypeError exception. in Slice()
189 …_ERROR_AND_RETURN(thread, "value of new arraybuffer and this is same", JSTaggedValue::Exception()); in Slice()
192 …f the value of new’s [[ArrayBufferByteLength]] internal slot < newLen, throw a TypeError exception. in Slice()
195 …RROR_AND_RETURN(thread, "new array buffer length smaller than newlen", JSTaggedValue::Exception()); in Slice()
198 // 22. If IsDetachedBuffer(O) is true, throw a TypeError exception. in Slice()
200 … THROW_TYPE_ERROR_AND_RETURN(thread, "this value IsDetachedBuffer", JSTaggedValue::Exception()); in Slice()
244 THROW_RANGE_ERROR_AND_RETURN(thread, "Out of range", JSTaggedValue::Exception()); in AllocateArrayBuffer()
283 // c. If IsDetachedBuffer(srcBuffer) is true, throw a TypeError exception. in CloneArrayBuffer()
285 THROW_TYPE_ERROR_AND_RETURN(thread, "Is Detached Buffer", JSTaggedValue::Exception()); in CloneArrayBuffer()
301 // 10. If IsDetachedBuffer(srcBuffer) is true, throw a TypeError exception. in CloneArrayBuffer()
303 THROW_TYPE_ERROR_AND_RETURN(thread, "Is Detached Buffer", JSTaggedValue::Exception()); in CloneArrayBuffer()