Lines Matching full:exception
34 // 1.If NewTarget is undefined, throw a TypeError exception in WeakMapConstructor()
38 … THROW_TYPE_ERROR_AND_RETURN(thread, "new target can't be undefined", JSTaggedValue::Exception()); in WeakMapConstructor()
59 THROW_TYPE_ERROR_AND_RETURN(thread, "iterable is not object", JSTaggedValue::Exception()); in WeakMapConstructor()
67 // If IsCallable(adder) is false, throw a TypeError exception in WeakMapConstructor()
136 // 2.If Type(S) is not Object, throw a TypeError exception. in Delete()
137 // 3.If S does not have a [[WeakMapData]] internal slot, throw a TypeError exception. in Delete()
139 THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSWeakMap.", JSTaggedValue::Exception()); in Delete()
158 // 2.If Type(S) is not Object, throw a TypeError exception. in Has()
159 // 3.If S does not have a [[WeakMapData]] internal slot, throw a TypeError exception. in Has()
161 THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSWeakMap.", JSTaggedValue::Exception()); in Has()
179 // 2.If Type(S) is not Object, throw a TypeError exception. in Get()
180 // 3.If S does not have a [[WeakMapData]] internal slot, throw a TypeError exception. in Get()
182 THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSWeakMap.", JSTaggedValue::Exception()); in Get()
200 // 2.If Type(S) is not Object, throw a TypeError exception. in Set()
201 // 3.If S does not have a [[WeakMapData]] internal slot, throw a TypeError exception. in Set()
203 THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSWeakMap.", JSTaggedValue::Exception()); in Set()
208 THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not an object.", JSTaggedValue::Exception()); in Set()
211 THROW_TYPE_ERROR_AND_RETURN(thread, "key is Symblol or String", JSTaggedValue::Exception()); in Set()