Lines Matching full:exception
34 // 1.If NewTarget is undefined, throw a TypeError exception in WeakSetConstructor()
38 … THROW_TYPE_ERROR_AND_RETURN(thread, "new target can't be undefined", JSTaggedValue::Exception()); in WeakSetConstructor()
65 // If IsCallable(adder) is false, throw a TypeError exception in WeakSetConstructor()
116 // 2.If Type(S) is not Object, throw a TypeError exception. in Add()
117 // 3.If S does not have a [[WeakSetData]] internal slot, throw a TypeError exception. in Add()
119 THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSWeakSet", JSTaggedValue::Exception()); in Add()
124 THROW_TYPE_ERROR_AND_RETURN(thread, "value is not an object", JSTaggedValue::Exception()); in Add()
127 … THROW_TYPE_ERROR_AND_RETURN(thread, "value is Symblol or String", JSTaggedValue::Exception()); in Add()
143 // 2.If Type(S) is not Object, throw a TypeError exception. in Delete()
144 // 3.If S does not have a [[WeakSetData]] internal slot, throw a TypeError exception. in Delete()
146 THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSWeakSet", JSTaggedValue::Exception()); in Delete()
164 // 2.If Type(S) is not Object, throw a TypeError exception. in Has()
165 // 3.If S does not have a [[SetData]] internal slot, throw a TypeError exception. in Has()
167 THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSWeakSet", JSTaggedValue::Exception()); in Has()