Lines Matching full:exception
35 // 1.If NewTarget is undefined, throw a TypeError exception in WeakMapConstructor()
39 … THROW_TYPE_ERROR_AND_RETURN(thread, "new target can't be undefined", JSTaggedValue::Exception()); in WeakMapConstructor()
60 THROW_TYPE_ERROR_AND_RETURN(thread, "iterable is not object", JSTaggedValue::Exception()); in WeakMapConstructor()
68 // If IsCallable(adder) is false, throw a TypeError exception in WeakMapConstructor()
82 // 2.If Type(S) is not Object, throw a TypeError exception. in Delete()
83 // 3.If S does not have a [[WeakMapData]] internal slot, throw a TypeError exception. in Delete()
85 THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSWeakMap.", JSTaggedValue::Exception()); in Delete()
104 // 2.If Type(S) is not Object, throw a TypeError exception. in Has()
105 // 3.If S does not have a [[WeakMapData]] internal slot, throw a TypeError exception. in Has()
107 THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSWeakMap.", JSTaggedValue::Exception()); in Has()
125 // 2.If Type(S) is not Object, throw a TypeError exception. in Get()
126 // 3.If S does not have a [[WeakMapData]] internal slot, throw a TypeError exception. in Get()
128 THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSWeakMap.", JSTaggedValue::Exception()); in Get()
146 // 2.If Type(S) is not Object, throw a TypeError exception. in Set()
147 // 3.If S does not have a [[WeakMapData]] internal slot, throw a TypeError exception. in Set()
149 THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSWeakMap.", JSTaggedValue::Exception()); in Set()
154 THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not an object.", JSTaggedValue::Exception()); in Set()
157 THROW_TYPE_ERROR_AND_RETURN(thread, "key is Symblol or String", JSTaggedValue::Exception()); in Set()