| call-parameters.js |
---
es6id: 9.5.4
description: >
Trap is called with handler on its context and target as the first
parameter.
info: |
[[PreventExtensions]] ( )
...
8. Let booleanTrapResult be ToBoolean(Call(trap, handler, «target»)).
...
--- |
717 |
- |
| null-handler.js |
---
es6id: 9.5.4
description: >
Throws a TypeError exception if handler is null.
--- |
358 |
- |
| return-false.js |
---
es6id: 9.5.4
description: >
If boolean trap result if false, return false.
features: [Reflect]
--- |
495 |
- |
| return-is-abrupt.js |
---
es6id: 9.5.4
description: >
Trap returns abrupt.
info: |
[[PreventExtensions]] ( )
...
8. Let booleanTrapResult be ToBoolean(Call(trap, handler, «target»)).
9. ReturnIfAbrupt(booleanTrapResult).
...
--- |
551 |
- |
| return-true-target-is-extensible.js |
---
es6id: 9.5.4
description: >
Throws a TypeError exception if boolean trap result is true and target is
extensible.
info: |
[[PreventExtensions]] ( )
...
10. If booleanTrapResult is true, then
...
c. If targetIsExtensible is true, throw a TypeError exception.
11. Return booleanTrapResult.
...
--- |
646 |
- |
| return-true-target-is-not-extensible.js |
---
es6id: 9.5.4
description: >
Return boolean trap result if its true and target is not extensible.
features: [Reflect]
--- |
448 |
- |
| trap-is-not-callable-realm.js |
---
esid: sec-proxy-object-internal-methods-and-internal-slots-preventextensions
es6id: 9.5.4
description: >
Throws if trap is not callable (honoring the Realm of the current execution
context)
info: |
[[PreventExtensions]] ( )
...
1. Let handler be the value of the [[ProxyHandler]] internal slot of O.
...
5. Let trap be GetMethod(handler, "preventExtensions").
...
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]
--- |
901 |
- |
| trap-is-not-callable.js |
---
es6id: 9.5.4
description: >
Throws a TypeError exception if trap is not callable.
info: |
[[PreventExtensions]] ( )
...
1. Let handler be the value of the [[ProxyHandler]] internal slot of O.
...
5. Let trap be GetMethod(handler, "preventExtensions").
...
7.3.9 GetMethod (O, P)
...
2. Let func be GetV(O, P).
5. If IsCallable(func) is false, throw a TypeError exception.
...
--- |
743 |
- |
| trap-is-undefined.js |
---
es6id: 9.5.4
description: >
Return target.[[PreventExtensions]]() if target is undefined.
features: [Reflect]
--- |
368 |
- |