Lines Matching refs:targetProto
94 // 14. Let targetProto be target.[[GetPrototypeOf]]().
95 JSTaggedValue targetProto = JSTaggedValue::GetPrototype(thread, targetHandle);
96 // 15. ReturnIfAbrupt(targetProto).
98 // 16. If SameValue(handlerProto, targetProto) is false, throw a TypeError exception.
99 if (!JSTaggedValue::SameValue(handlerProto, targetProto)) {
100 THROW_TYPE_ERROR_AND_RETURN(thread, "JSProxy::GetPrototype: SameValue(handlerProto, targetProto) is false",
157 // 14. Let targetProto be target.[[GetPrototypeOf]]().
158 JSTaggedValue targetProto = JSTaggedValue::GetPrototype(thread, targetHandle);
159 // 15. ReturnIfAbrupt(targetProto).
162 // 16. If booleanTrapResult is true and SameValue(V, targetProto) is false, throw a TypeError exception.
163 if (booleanTrapResult && !JSTaggedValue::SameValue(proto.GetTaggedValue(), targetProto)) {
164 THROW_TYPE_ERROR_AND_RETURN(thread, "JSProxy::SetPrototype: TypeError of targetProto and Result", false);