Lines Matching full:exception
33 // 1. If NewTarget is undefined, throw a TypeError exception. in FinalizationRegistryConstructor()
35 … THROW_TYPE_ERROR_AND_RETURN(thread, "new target can't be undefined", JSTaggedValue::Exception()); in FinalizationRegistryConstructor()
37 // 2. If IsCallable(cleanupCallback) is false, throw a TypeError exception. in FinalizationRegistryConstructor()
40 … THROW_TYPE_ERROR_AND_RETURN(thread, "cleanupCallback not Callable", JSTaggedValue::Exception()); in FinalizationRegistryConstructor()
76 JSTaggedValue::Exception()); in Register()
78 // 3. If Type(target) is not Object, throw a TypeError exception. in Register()
80 THROW_TYPE_ERROR_AND_RETURN(thread, "target is not object", JSTaggedValue::Exception()); in Register()
82 // 4. If SameValue(target, heldValue) is true, throw a TypeError exception. in Register()
84 …E_ERROR_AND_RETURN(thread, "target and heldValue should not be equal", JSTaggedValue::Exception()); in Register()
87 // a. If unregisterToken is not undefined, throw a TypeError exception. in Register()
90 …HROW_TYPE_ERROR_AND_RETURN(thread, "unregisterToken should be object", JSTaggedValue::Exception()); in Register()
113 JSTaggedValue::Exception()); in Unregister()
115 // 3. If Type(unregisterToken) is not Object, throw a TypeError exception. in Unregister()
117 …HROW_TYPE_ERROR_AND_RETURN(thread, "unregisterToken should be object", JSTaggedValue::Exception()); in Unregister()