Lines Matching full:exception
35 // 1.If NewTarget is undefined, throw a TypeError exception in SetConstructor()
39 … THROW_TYPE_ERROR_AND_RETURN(thread, "new target can't be undefined", JSTaggedValue::Exception()); in SetConstructor()
66 // If IsCallable(adder) is false, throw a TypeError exception in SetConstructor()
112 // 2.If Type(S) is not Object, throw a TypeError exception. in Add()
113 // 3.If S does not have a [[SetData]] internal slot, throw a TypeError exception. in Add()
115 THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSSet", JSTaggedValue::Exception()); in Add()
133 // 2.If Type(S) is not Object, throw a TypeError exception. in Clear()
134 // 3.If S does not have a [[SetData]] internal slot, throw a TypeError exception. in Clear()
136 THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSSet", JSTaggedValue::Exception()); in Clear()
150 // 2.If Type(S) is not Object, throw a TypeError exception. in Delete()
151 // 3.If S does not have a [[SetData]] internal slot, throw a TypeError exception. in Delete()
153 THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSSet", JSTaggedValue::Exception()); in Delete()
169 // 2.If Type(S) is not Object, throw a TypeError exception. in Has()
170 // 3.If S does not have a [[SetData]] internal slot, throw a TypeError exception. in Has()
172 THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSSet", JSTaggedValue::Exception()); in Has()
186 // 2.If Type(S) is not Object, throw a TypeError exception. in ForEach()
187 // 3.If S does not have a [[SetData]] internal slot, throw a TypeError exception. in ForEach()
189 THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSSet", JSTaggedValue::Exception()); in ForEach()
193 // 4.If IsCallable(callbackfn) is false, throw a TypeError exception. in ForEach()
196 … THROW_TYPE_ERROR_AND_RETURN(thread, "callbackfn is not callable", JSTaggedValue::Exception()); in ForEach()
231 // 2.If Type(S) is not Object, throw a TypeError exception. in GetSize()
232 // 3.If S does not have a [[SetData]] internal slot, throw a TypeError exception. in GetSize()
234 THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSSet", JSTaggedValue::Exception()); in GetSize()