browser.js |
|
0 |
call-parameters.js |
---
es6id: 9.5.6
description: >
Trap is called with handler as context and parameters are target, P, and the
descriptor object.
info: |
[[DefineOwnProperty]] (P, Desc)
...
9. Let descObj be FromPropertyDescriptor(Desc).
10. Let booleanTrapResult be ToBoolean(Call(trap, handler, «target, P,
descObj»)).
...
features: [Proxy]
--- |
1258 |
desc-realm.js |
---
esid: sec-proxy-object-internal-methods-and-internal-slots-defineownproperty-p-desc
description: >
Property descriptor object is created in the Realm of the current execution
context
info: |
[[DefineOwnProperty]] (P, Desc)
...
8. Let descObj be FromPropertyDescriptor(Desc).
9. Let booleanTrapResult be ToBoolean(? Call(trap, handler, « target, P,
descObj »)).
...
6.2.4.4 FromPropertyDescriptor
...
2. Let obj be ObjectCreate(%ObjectPrototype%).
...
11. Return obj.
features: [cross-realm, Proxy]
--- |
948 |
null-handler-realm.js |
---
esid: sec-proxy-object-internal-methods-and-internal-slots-defineownproperty-p-desc
description: >
Throws a TypeError exception if handler is null (honoring the realm of the
current execution context).
info: |
1. Assert: IsPropertyKey(P) is true.
2. Let handler be O.[[ProxyHandler]].
3. If handler is null, throw a TypeError exception.
features: [cross-realm, Proxy]
--- |
727 |
null-handler.js |
---
es6id: 9.5.6
description: >
Throws a TypeError exception if handler is null.
features: [Proxy]
--- |
454 |
return-boolean-and-define-target.js |
---
es6id: 9.5.6
description: >
If a property has a corresponding target object property then applying the
Property Descriptor of the property to the target object using
[[DefineOwnProperty]] will not throw an exception.
features: [Proxy, Reflect]
includes: [propertyHelper.js]
--- |
1241 |
return-is-abrupt.js |
---
es6id: 9.5.6
description: >
Trap return is an abrupt.
info: |
[[DefineOwnProperty]] (P, Desc)
...
10. Let booleanTrapResult be ToBoolean(Call(trap, handler, «target, P,
descObj»)).
11. ReturnIfAbrupt(booleanTrapResult).
...
features: [Proxy]
--- |
637 |
shell.js |
|
0 |
targetdesc-configurable-desc-not-configurable-realm.js |
---
esid: sec-proxy-object-internal-methods-and-internal-slots-defineownproperty-p-desc
description: >
Throw a TypeError exception if Desc is not configurable and target property
descriptor is configurable and trap result is true (honoring the realm of
the current execution context).
info: |
[[DefineOwnProperty]] (P, Desc)
...
20. Else targetDesc is not undefined,
b. If settingConfigFalse is true and targetDesc.[[Configurable]] is
true, throw a TypeError exception.
...
features: [cross-realm, Proxy]
--- |
1086 |
targetdesc-configurable-desc-not-configurable.js |
---
es6id: 9.5.6
description: >
Throw a TypeError exception if Desc is not configurable and target property
descriptor is configurable and trap result is true.
info: |
[[DefineOwnProperty]] (P, Desc)
...
20. Else targetDesc is not undefined,
b. If settingConfigFalse is true and targetDesc.[[Configurable]] is
true, throw a TypeError exception.
...
features: [Proxy]
--- |
891 |
targetdesc-not-compatible-descriptor-not-configurable-target-realm.js |
---
esid: sec-proxy-object-internal-methods-and-internal-slots-defineownproperty-p-desc
description: >
Throw a TypeError exception if Desc and target property descriptor are not
compatible and trap result is true.
info: |
[[DefineOwnProperty]] (P, Desc)
...
20. Else targetDesc is not undefined,
a. If IsCompatiblePropertyDescriptor(extensibleTarget, Desc ,
targetDesc) is false, throw a TypeError exception.
...
features: [cross-realm, Proxy]
--- |
1021 |
targetdesc-not-compatible-descriptor-not-configurable-target.js |
---
es6id: 9.5.6
description: >
Throw a TypeError exception if Desc and target property descriptor are not
compatible and trap result is true.
info: |
[[DefineOwnProperty]] (P, Desc)
...
20. Else targetDesc is not undefined,
a. If IsCompatiblePropertyDescriptor(extensibleTarget, Desc ,
targetDesc) is false, throw a TypeError exception.
...
features: [Proxy]
--- |
884 |
targetdesc-not-compatible-descriptor-realm.js |
---
esid: sec-proxy-object-internal-methods-and-internal-slots-defineownproperty-p-desc
description: >
Throw a TypeError exception if Desc and target property descriptor are not
compatible and trap result is true (honoring the realm of the current
execution context).
info: |
[[DefineOwnProperty]] (P, Desc)
...
20. Else targetDesc is not undefined,
a. If IsCompatiblePropertyDescriptor(extensibleTarget, Desc ,
targetDesc) is false, throw a TypeError exception.
...
features: [cross-realm, Proxy]
--- |
1032 |
targetdesc-not-compatible-descriptor.js |
---
es6id: 9.5.6
description: >
Throw a TypeError exception if Desc and target property descriptor are not
compatible and trap result is true.
info: |
[[DefineOwnProperty]] (P, Desc)
...
20. Else targetDesc is not undefined,
a. If IsCompatiblePropertyDescriptor(extensibleTarget, Desc ,
targetDesc) is false, throw a TypeError exception.
...
features: [Proxy]
--- |
837 |
targetdesc-not-configurable-writable-desc-not-writable.js |
---
esid: sec-proxy-object-internal-methods-and-internal-slots-defineownproperty-p-desc
description: >
Throw a TypeError exception if trap result is true, targetDesc is not configurable
and writable, while Desc is not writable.
info: |
[[DefineOwnProperty]] (P, Desc)
...
16. Else targetDesc is not undefined,
...
c. If IsDataDescriptor(targetDesc) is true, targetDesc.[[Configurable]] is
false, and targetDesc.[[Writable]] is true, then
i. If Desc has a [[Writable]] field and Desc.[[Writable]] is
false, throw a TypeError exception.
...
features: [Proxy, Reflect, proxy-missing-checks]
--- |
1188 |
targetdesc-undefined-not-configurable-descriptor-realm.js |
---
esid: sec-proxy-object-internal-methods-and-internal-slots-defineownproperty-p-desc
description: >
Throw a TypeError exception if Desc is not configurable and target property
descriptor is undefined, and trap result is true (honoring the realm of the
current execution context).
info: |
[[DefineOwnProperty]] (P, Desc)
...
19. If targetDesc is undefined, then
...
b. If settingConfigFalse is true, throw a TypeError exception.
...
features: [cross-realm, Proxy]
--- |
955 |
targetdesc-undefined-not-configurable-descriptor.js |
---
es6id: 9.5.6
description: >
Throw a TypeError exception if Desc is not configurable and target property
descriptor is undefined, and trap result is true.
info: |
[[DefineOwnProperty]] (P, Desc)
...
19. If targetDesc is undefined, then
...
b. If settingConfigFalse is true, throw a TypeError exception.
...
features: [Proxy]
--- |
761 |
targetdesc-undefined-target-is-not-extensible-realm.js |
---
esid: sec-proxy-object-internal-methods-and-internal-slots-defineownproperty-p-desc
description: >
Throw a TypeError exception if Desc is not configurable and target is not
extensible, and trap result is true (honoring the realm of the current
execution context).
info: |
[[DefineOwnProperty]] (P, Desc)
...
19. If targetDesc is undefined, then
a. If extensibleTarget is false, throw a TypeError exception.
...
features: [cross-realm, Proxy]
--- |
912 |
targetdesc-undefined-target-is-not-extensible.js |
---
es6id: 9.5.6
description: >
Throw a TypeError exception if Desc is not configurable and target is not
extensible, and trap result is true.
info: |
[[DefineOwnProperty]] (P, Desc)
...
19. If targetDesc is undefined, then
a. If extensibleTarget is false, throw a TypeError exception.
...
features: [Proxy]
--- |
741 |
trap-is-missing-target-is-proxy.js |
---
esid: sec-proxy-object-internal-methods-and-internal-slots-defineownproperty-p-desc
description: >
If "defineProperty" trap is null or undefined, [[DefineOwnProperty]] call
is properly forwarded to [[ProxyTarget]] (which is also a Proxy object).
info: |
[[DefineOwnProperty]] (P, Desc)
[...]
5. Let target be O.[[ProxyTarget]].
6. Let trap be ? GetMethod(handler, "defineProperty").
7. If trap is undefined, then
a. Return ? target.[[DefineOwnProperty]](P, Desc).
features: [Proxy, Reflect]
--- |
1434 |
trap-is-not-callable-realm.js |
---
esid: sec-proxy-object-internal-methods-and-internal-slots-defineownproperty-p-desc
description: >
Throws if trap is not callable (honoring the Realm of the current execution
context)
info: |
[[DefineOwnProperty]] (P, Desc)
...
6. Let trap be GetMethod(handler, "defineProperty").
...
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, Proxy]
--- |
864 |
trap-is-not-callable.js |
---
es6id: 9.5.6
description: >
Throw a TypeError exception if trap is not callable.
info: |
[[DefineOwnProperty]] (P, Desc)
...
6. Let trap be GetMethod(handler, "defineProperty").
...
7.3.9 GetMethod (O, P)
...
2. Let func be GetV(O, P).
5. If IsCallable(func) is false, throw a TypeError exception.
...
features: [Proxy]
--- |
722 |
trap-is-null-target-is-proxy.js |
---
esid: sec-proxy-object-internal-methods-and-internal-slots-defineownproperty-p-desc
description: >
If "defineProperty" trap is null or undefined, [[DefineOwnProperty]] call
is properly forwarded to [[ProxyTarget]] (which is also a Proxy object).
info: |
[[DefineOwnProperty]] (P, Desc)
[...]
5. Let target be O.[[ProxyTarget]].
6. Let trap be ? GetMethod(handler, "defineProperty").
7. If trap is undefined, then
a. Return ? target.[[DefineOwnProperty]](P, Desc).
features: [Proxy, Reflect]
includes: [propertyHelper.js]
--- |
1476 |
trap-is-undefined-target-is-proxy.js |
---
esid: sec-proxy-object-internal-methods-and-internal-slots-defineownproperty-p-desc
description: >
If "defineProperty" trap is null or undefined, [[DefineOwnProperty]] call
is properly forwarded to [[ProxyTarget]] (which is also a Proxy object).
info: |
[[DefineOwnProperty]] (P, Desc)
[...]
5. Let target be O.[[ProxyTarget]].
6. Let trap be ? GetMethod(handler, "defineProperty").
7. If trap is undefined, then
a. Return ? target.[[DefineOwnProperty]](P, Desc).
features: [Proxy, Reflect]
includes: [compareArray.js]
--- |
1454 |
trap-is-undefined.js |
---
es6id: 9.5.6
description: >
Return target.[[DefineOwnProperty]](P, Desc) if trap is undefined.
info: |
[[DefineOwnProperty]] (P, Desc)
...
8. If trap is undefined, then
a. Return target.[[DefineOwnProperty]](P, Desc).
...
includes: [propertyHelper.js]
features: [Proxy]
--- |
1028 |
trap-return-is-false.js |
---
es6id: 9.5.6
description: >
Trap returns a boolean. Checking on false values.
info: |
[[DefineOwnProperty]] (P, Desc)
...
12. If booleanTrapResult is false, return false.
...
features: [Proxy, Reflect]
--- |
656 |