Lines Matching full:exception
30 // 1.If NewTarget is undefined, throw a TypeError exception in WeakMapConstructor()
34 … THROW_TYPE_ERROR_AND_RETURN(thread, "new target can't be undefined", JSTaggedValue::Exception()); in WeakMapConstructor()
55 THROW_TYPE_ERROR_AND_RETURN(thread, "iterable is not object", JSTaggedValue::Exception()); in WeakMapConstructor()
63 // If IsCallable(adder) is false, throw a TypeError exception in WeakMapConstructor()
77 // 2.If Type(S) is not Object, throw a TypeError exception. in Delete()
78 // 3.If S does not have a [[WeakMapData]] internal slot, throw a TypeError exception. in Delete()
80 THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSWeakMap.", JSTaggedValue::Exception()); in Delete()
99 // 2.If Type(S) is not Object, throw a TypeError exception. in Has()
100 // 3.If S does not have a [[WeakMapData]] internal slot, throw a TypeError exception. in Has()
102 THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSWeakMap.", JSTaggedValue::Exception()); in Has()
120 // 2.If Type(S) is not Object, throw a TypeError exception. in Get()
121 // 3.If S does not have a [[WeakMapData]] internal slot, throw a TypeError exception. in Get()
123 THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSWeakMap.", JSTaggedValue::Exception()); in Get()
142 // 2.If Type(S) is not Object, throw a TypeError exception. in Set()
143 // 3.If S does not have a [[WeakMapData]] internal slot, throw a TypeError exception. in Set()
145 THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSWeakMap.", JSTaggedValue::Exception()); in Set()
149 // 4.If CanBeHeldWeakly(key) is false, throw a TypeError exception. in Set()
151 …W_TYPE_ERROR_AND_RETURN(thread, "invalid value used as weak map key.", JSTaggedValue::Exception()); in Set()