| call-parameters.js |
---
es6id: 9.5.5
description: >
Trap is called with hander context and parameters are target and P
info: |
[[GetOwnProperty]] (P)
...
9. Let trapResultObj be Call(trap, handler, «target, P»).
...
--- |
786 |
- |
| null-handler.js |
---
es6id: 9.5.5
description: >
Throws a TypeError exception if handler is null.
--- |
365 |
- |
| result-is-undefined-target-is-not-extensible.js |
---
es6id: 9.5.5
description: >
Throws a TypeError exception if trap result is undefined and target is not
extensible
info: |
[[GetOwnProperty]] (P)
...
14. If trapResultObj is undefined, then
...
e. If ToBoolean(extensibleTarget) is false, throw a TypeError exception.
...
--- |
709 |
- |
| result-is-undefined-targetdesc-is-not-configurable.js |
---
es6id: 9.5.5
description: >
Throws a TypeError exception if trap result is undefined and target property
descriptor is not configurable
info: |
[[GetOwnProperty]] (P)
...
14. If trapResultObj is undefined, then
...
b. If targetDesc.[[Configurable]] is false, throw a TypeError exception.
...
--- |
784 |
- |
| result-is-undefined-targetdesc-is-undefined.js |
---
es6id: 9.5.5
description: >
Throws a TypeError exception if trap result is undefined and target property
descriptor is undefined.
info: |
[[GetOwnProperty]] (P)
...
14. If trapResultObj is undefined, then
a. If targetDesc is undefined, return undefined.
...
--- |
681 |
- |
| result-is-undefined.js |
---
es6id: 9.5.5
description: >
Return undefined if trap result is undefined and target is extensible and
the target property descriptor is configurable.
info: |
[[GetOwnProperty]] (P)
...
14. If trapResultObj is undefined, then
...
f. Return undefined.
...
--- |
645 |
- |
| result-type-is-not-object-nor-undefined-realm.js |
---
esid: sec-proxy-object-internal-methods-and-internal-slots-getownproperty-p
es6id: 9.5.5
description: >
Error when trap result is neither Object nor undefined (honoring the Realm of
the current execution context)
info: |
[...]
9. If Type(trapResultObj) is neither Object nor Undefined, throw a TypeError
exception.
features: [cross-realm]
--- |
727 |
- |
| result-type-is-not-object-nor-undefined.js |
---
es6id: 9.5.5
description: >
Throws a TypeError exception if trap result is neither Object nor Undefined
info: |
[[GetOwnProperty]] (P)
...
11. If Type(trapResultObj) is neither Object nor Undefined, throw a
TypeError exception.
...
features: [Symbol]
--- |
1085 |
- |
| resultdesc-is-invalid-descriptor.js |
---
es6id: 9.5.5
description: >
Throws a TypeError exception if trap result and target property descriptors
are not compatible.
info: |
[[GetOwnProperty]] (P)
...
20. Let valid be IsCompatiblePropertyDescriptor (extensibleTarget,
resultDesc, targetDesc).
21. If valid is false, throw a TypeError exception.
--- |
801 |
- |
| resultdesc-is-not-configurable-targetdesc-is-configurable.js |
---
es6id: 9.5.5
description: >
Throws a TypeError exception if trap result is not configurable but target
property descriptor is configurable.
info: |
[[GetOwnProperty]] (P)
...
22. If resultDesc.[[Configurable]] is false, then
a. If targetDesc is undefined or targetDesc.[[Configurable]] is true,
then
i. Throw a TypeError exception.
...
--- |
929 |
- |
| resultdesc-is-not-configurable-targetdesc-is-undefined.js |
---
es6id: 9.5.5
description: >
Throws a TypeError exception if trap result is not configurable but target
property descriptor is undefined.
info: |
[[GetOwnProperty]] (P)
...
2. Let handler be the value of the [[ProxyHandler]] internal slot of O.
...
5. Let target be the value of the [[ProxyTarget]] internal slot of O.
6. Let trap be GetMethod(handler, "getOwnPropertyDescriptor").
...
9. Let trapResultObj be Call(trap, handler, «target, P»).
...
12. Let targetDesc be target.[[GetOwnProperty]](P).
...
17. Let resultDesc be ToPropertyDescriptor(trapResultObj).
...
22. If resultDesc.[[Configurable]] is false, then
a. If targetDesc is undefined or targetDesc.[[Configurable]] is true, then
i. Throw a TypeError exception.
--- |
1341 |
- |
| resultdesc-return-configurable.js |
---
es6id: 9.5.5
description: >
Return descriptor from trap result if it has the same value as the target
property descriptor.
--- |
769 |
- |
| resultdesc-return-not-configurable.js |
---
es6id: 9.5.5
description: >
Return descriptor from trap result if it has the same value as the target
property descriptor and they're not configurable.
--- |
789 |
- |
| return-is-abrupt.js |
---
es6id: 9.5.5
description: >
Trap returns abrupt.
info: |
[[GetOwnProperty]] (P)
...
9. Let trapResultObj be Call(trap, handler, «target, P»).
10. ReturnIfAbrupt(trapResultObj).
...
--- |
561 |
- |
| trap-is-not-callable-realm.js |
---
esid: sec-proxy-object-internal-methods-and-internal-slots-getownproperty-p
es6id: 9.5.5
description: >
Throws if trap is not callable (honoring the Realm of the current execution
context)
info: |
[[GetOwnProperty]] (P)
...
2. Let handler be the value of the [[ProxyHandler]] internal slot of O.
...
5. Let target be the value of the [[ProxyTarget]] internal slot of O.
6. Let trap be GetMethod(handler, "getOwnPropertyDescriptor").
...
7.3.9 GetMethod (O, P)
...
2. Let func be GetV(O, P).
5. If IsCallable(func) is false, throw a TypeError exception.
...
features: [cross-realm]
--- |
999 |
- |
| trap-is-not-callable.js |
---
es6id: 9.5.5
description: >
Throws a TypeError exception if trap is not callable.
info: |
[[GetOwnProperty]] (P)
...
2. Let handler be the value of the [[ProxyHandler]] internal slot of O.
...
5. Let target be the value of the [[ProxyTarget]] internal slot of O.
6. Let trap be GetMethod(handler, "getOwnPropertyDescriptor").
...
7.3.9 GetMethod (O, P)
...
2. Let func be GetV(O, P).
5. If IsCallable(func) is false, throw a TypeError exception.
...
--- |
842 |
- |
| trap-is-undefined.js |
---
es6id: 9.5.5
description: >
Return target.[[GetOwnProperty]](P) if trap is undefined.
info: |
[[GetOwnProperty]] (P)
...
8. If trap is undefined, then
a. Return target.[[GetOwnProperty]](P).
...
includes: [propertyHelper.js]
--- |
642 |
- |