Lines Matching full:is
10 * distributed under the License is distributed on an "AS IS" BASIS,
30 // 1. If Type(target) is not Object, throw a TypeError exception. in ProxyCreate()
32 THROW_TYPE_ERROR_AND_RETURN(thread, "ProxyCreate: target is not Object", in ProxyCreate()
36 // 2. If Type(handler) is not Object, throw a TypeError exception. in ProxyCreate()
38 THROW_TYPE_ERROR_AND_RETURN(thread, "ProxyCreate: handler is not Object", in ProxyCreate()
42 // 6. If IsCallable(target) is true, then P.[[Call]] as specified in 9.5.12. in ProxyCreate()
55 // 2. If handler is null, throw a TypeError exception. in GetPrototype()
57 …THROW_TYPE_ERROR_AND_RETURN(thread, "JSProxy::GetPrototype: handler is null", JSTaggedValue::Excep… in GetPrototype()
59 // 3. Assert: Type(handler) is Object. in GetPrototype()
69 // 7. If trap is undefined, then Return target.[[GetPrototypeOf]](). in GetPrototype()
82 // 10. If Type(handlerProto) is neither Object nor Null, throw a TypeError exception. in GetPrototype()
84 …THROW_TYPE_ERROR_AND_RETURN(thread, "JSProxy::GetPrototype: Type(handlerProto) is neither Object n… in GetPrototype()
89 // 13. If extensibleTarget is true, return handlerProto. in GetPrototype()
99 // 16. If SameValue(handlerProto, targetProto) is false, throw a TypeError exception. in GetPrototype()
101 …PE_ERROR_AND_RETURN(thread, "JSProxy::GetPrototype: SameValue(handlerProto, targetProto) is false", in GetPrototype()
112 // 1. Assert: Either Type(V) is Object or Type(V) is Null. in SetPrototype()
116 // 3. If handler is null, throw a TypeError exception. in SetPrototype()
118 THROW_TYPE_ERROR_AND_RETURN(thread, "JSProxy::SetPrototype: handler is null", false); in SetPrototype()
120 // 4. Assert: Type(handler) is Object. in SetPrototype()
130 // 7. If trap is undefined, then Return target.[[SetPrototypeOf]](V). in SetPrototype()
143 // If booleanTrapResult is false, return false in SetPrototype()
151 // 13. If extensibleTarget is true, return booleanTrapResult in SetPrototype()
162 …// 16. If booleanTrapResult is true and SameValue(V, targetProto) is false, throw a TypeError exce… in SetPrototype()
176 // 2. If handler is null, throw a TypeError exception. in IsExtensible()
178 THROW_TYPE_ERROR_AND_RETURN(thread, "JSProxy::IsExtensible: handler is null", false); in IsExtensible()
180 // 3. Assert: Type(handler) is Object. in IsExtensible()
190 // 7. If trap is undefined, then Return target.[[IsExtensible]](). in IsExtensible()
209 // 12. If SameValue(booleanTrapResult, targetResult) is false, throw a TypeError exception. in IsExtensible()
223 // 2. If handler is null, throw a TypeError exception. in PreventExtensions()
224 // 3. Assert: Type(handler) is Object. in PreventExtensions()
228 // 7. If trap is undefined, then in PreventExtensions()
234 THROW_TYPE_ERROR_AND_RETURN(thread, "JSProxy::PreventExtensions: handler is null", false); in PreventExtensions()
256 // 10. If booleanTrapResult is true, then in PreventExtensions()
259 // c. If targetIsExtensible is true, throw a TypeError exception. in PreventExtensions()
261 …THROW_TYPE_ERROR_AND_RETURN(thread, "JSProxy::PreventExtensions: targetIsExtensible is true", fals… in PreventExtensions()
272 // 1. Assert: IsPropertyKey(P) is true. in GetOwnProperty()
275 // 3. If handler is null, throw a TypeError exception. in GetOwnProperty()
276 // 4. Assert: Type(handler) is Object. in GetOwnProperty()
280 // 8. If trap is undefined, then in GetOwnProperty()
284 // 11. If Type(trapResultObj) is neither Object nor Undefined, throw a TypeError exception in GetOwnProperty()
287 THROW_TYPE_ERROR_AND_RETURN(thread, "JSProxy::GetOwnProperty: handler is null", false); in GetOwnProperty()
309 // 11. If Type(trapResultObj) is neither Object nor Undefined, throw a TypeError exception. in GetOwnProperty()
319 // 14. If trapResultObj is undefined, then in GetOwnProperty()
321 // a. If targetDesc is undefined, return undefined. in GetOwnProperty()
325 // b. If targetDesc.[[Configurable]] is false, throw a TypeError exception. in GetOwnProperty()
327 …E_ERROR_AND_RETURN(thread, "JSProxy::GetOwnProperty: targetDesc.[[Configurable]] is false", false); in GetOwnProperty()
331 // e. Assert: Type(extensibleTarget) is Boolean. in GetOwnProperty()
332 // f. If extensibleTarget is false, throw a TypeError exception. in GetOwnProperty()
334 … THROW_TYPE_ERROR_AND_RETURN(thread, "JSProxy::GetOwnProperty: extensibleTarget is false", false); in GetOwnProperty()
353 // 22. If resultDesc.[[Configurable]] is false, then in GetOwnProperty()
355 // a. If targetDesc is undefined or targetDesc.[[Configurable]] is true, then in GetOwnProperty()
359 // b. If resultDesc has a [[Writable]] field and resultDesc.[[Writable]] is false, then in GetOwnProperty()
360 // If targetDesc.[[Writable]] is true, throw a TypeError exception. in GetOwnProperty()
364 // b. If resultDesc has a [[Writable]] field and resultDesc.[[Writable]] is false, then in GetOwnProperty()
365 // If targetDesc.[[Writable]] is true, throw a TypeError exception. in GetOwnProperty()
383 THROW_TYPE_ERROR_AND_RETURN(thread, "JSProxy::DefineOwnProperty: handler is Null", false); in DefineOwnProperty()
419 …// 17. If Desc has a [[Configurable]] field and if Desc.[[Configurable]] is false, then Let settin… in DefineOwnProperty()
426 // 19. If targetDesc is undefined, then in DefineOwnProperty()
428 // a. If extensibleTarget is false, throw a TypeError exception. in DefineOwnProperty()
430 …THROW_TYPE_ERROR_AND_RETURN(thread, "JSProxy::DefineOwnProperty: extensibleTarget is false", false… in DefineOwnProperty()
432 // b. If settingConfigFalse is true, throw a TypeError exception. in DefineOwnProperty()
434 …THROW_TYPE_ERROR_AND_RETURN(thread, "JSProxy::DefineOwnProperty: settingConfigFalse is true", fals… in DefineOwnProperty()
437 …// a. If IsCompatiblePropertyDescriptor(extensibleTarget, Desc , targetDesc) is false, throw a Typ… in DefineOwnProperty()
442 …// b. If settingConfigFalse is true and targetDesc.[[Configurable]] is true, throw a TypeError exc… in DefineOwnProperty()
446 …// c. If IsDataDescriptor(targetDesc) is true, targetDesc.[[Configurable]] is false, and targetDes… in DefineOwnProperty()
447 …// is true, then If Desc has a [[Writable]] field and Desc.[[Writable]] is false, throw a TypeErro… in DefineOwnProperty()
452 …// c. If IsDataDescriptor(targetDesc) is true, targetDesc.[[Configurable]] is false, and targetDes… in DefineOwnProperty()
453 …// is true, then If Desc has a [[Writable]] field and Desc.[[Writable]] is false, throw a TypeErro… in DefineOwnProperty()
471 THROW_TYPE_ERROR_AND_RETURN(thread, "JSProxy::HasProperty: handler is Null", false); in HasProperty()
497 // 11. If booleanTrapResult is false, then in HasProperty()
504 // c. If targetDesc is not undefined, then in HasProperty()
506 // i. If targetDesc.[[Configurable]] is false, throw a TypeError exception. in HasProperty()
512 // iv. If extensibleTarget is false, throw a TypeError exception. in HasProperty()
514 … THROW_TYPE_ERROR_AND_RETURN(thread, "JSProxy::HasProperty: extensibleTarget is false", false); in HasProperty()
531 THROW_TYPE_ERROR_AND_RETURN(thread, "JSProxy::GetProperty: handler is Null", in GetProperty()
567 // 13. If targetDesc is not undefined, then in GetProperty()
569 …sDataDescriptor(targetDesc) and targetDesc.[[Configurable]] is false and targetDesc.[[Writable]] is in GetProperty()
572 … // i. If SameValue(trapResult, targetDesc.[[Value]]) is false, throw a TypeError exception. in GetProperty()
579 …IsAccessorDescriptor(targetDesc) and targetDesc.[[Configurable]] is false and targetDesc.[[Get]] is in GetProperty()
583 // i. If trapResult is not undefined, throw a TypeError exception. in GetProperty()
586 thread, "JSProxy::GetProperty: trapResult is not undefined", in GetProperty()
604 THROW_TYPE_ERROR_AND_RETURN(thread, "JSProxy::SetProperty: handler is Null", false); in SetProperty()
635 // 14. If targetDesc is not undefined, then in SetProperty()
637 …sDataDescriptor(targetDesc) and targetDesc.[[Configurable]] is false and targetDesc.[[Writable]] is in SetProperty()
640 … // i. If SameValue(trapResult, targetDesc.[[Value]]) is false, throw a TypeError exception. in SetProperty()
645 // b. If IsAccessorDescriptor(targetDesc) and targetDesc.[[Configurable]] is false, then in SetProperty()
646 // i. If targetDesc.[[Set]] is undefined, throw a TypeError exception. in SetProperty()
663 THROW_TYPE_ERROR_AND_RETURN(thread, "JSProxy::DeleteProperty: handler is Null", false); in DeleteProperty()
694 // 14. If targetDesc is undefined, return true. in DeleteProperty()
698 // 15. If targetDesc.[[Configurable]] is false, throw a TypeError exception. in DeleteProperty()
700 …THROW_TYPE_ERROR_AND_RETURN(thread, "JSProxy::DeleteProperty: targetDesc is not Configurable", fal… in DeleteProperty()
703 …THROW_TYPE_ERROR_AND_RETURN(thread, "JSProxy::DeleteProperty: targetHandle is not Extensible", fal… in DeleteProperty()
719 THROW_TYPE_ERROR_AND_RETURN(thread, "OwnPropertyKeys: handler is null", in OwnPropertyKeys()
734 // 7.If trap is undefined, then in OwnPropertyKeys()
774 // 15.Assert: targetKeys is a List containing only String and Symbol values. in OwnPropertyKeys()
780 // c.If desc is not undefined and desc.[[Configurable]] is false, then in OwnPropertyKeys()
807 // 19.If extensibleTarget is true and targetNonconfigurableKeys is empty, then in OwnPropertyKeys()
813 // 20.Let uncheckedResultKeys be a new List which is a copy of trapResult. in OwnPropertyKeys()
818 // 21.Repeat, for each key that is an element of targetNonconfigurableKeys, in OwnPropertyKeys()
819 // a.If key is not an element of uncheckedResultKeys, throw a TypeError exception. in OwnPropertyKeys()
824 …THROW_TYPE_ERROR_AND_RETURN(thread, "OwnPropertyKeys: key is not an element of uncheckedResultKeys… in OwnPropertyKeys()
831 // 22.If extensibleTarget is true, return trapResult. in OwnPropertyKeys()
836 // 23.Repeat, for each key that is an element of targetConfigurableKeys, in OwnPropertyKeys()
837 // a.If key is not an element of uncheckedResultKeys, throw a TypeError exception. in OwnPropertyKeys()
842 …THROW_TYPE_ERROR_AND_RETURN(thread, "OwnPropertyKeys: key is not an element of uncheckedResultKeys… in OwnPropertyKeys()
849 // 24.If uncheckedResultKeys is not empty, throw a TypeError exception. in OwnPropertyKeys()
851 THROW_TYPE_ERROR_AND_RETURN(thread, "OwnPropertyKeys: uncheckedResultKeys is not empty", in OwnPropertyKeys()
872 THROW_TYPE_ERROR_AND_RETURN(thread, "Call: handler is null", JSTaggedValue::Exception()); in CallInternal()
886 // 7.If trap is undefined, then in CallInternal()
925 … THROW_TYPE_ERROR_AND_RETURN(thread, "Constructor: handler is null", JSTaggedValue::Exception()); in ConstructInternal()
936 // 7.If trap is undefined, then in ConstructInternal()
966 // 11.If Type(newObj) is not Object, throw a TypeError exception. in ConstructInternal()
968 THROW_TYPE_ERROR_AND_RETURN(thread, "new object is not object", JSTaggedValue::Exception()); in ConstructInternal()