Files
vectorcraft/docs
dotCooCoo fd50e7dba1 Scripts: proxies take Symbol keys through their traps
A Symbol key on a proxy read, wrote, tested, deleted and described the
proxy's own Symbol table, so the target never saw it and no trap ran.
Every Symbol path now resolves a proxy the way a string key does: the
get, set, has, deleteProperty, defineProperty and getOwnPropertyDescriptor
traps receive the Symbol, and without a trap the operation reaches the
target with its writable and accessor checks. A super write and a write
on a primitive that reach a proxy go through its [[Set]].

- ownKeys traps may return Symbols; a duplicate Symbol (by identity) or
  any other value is a TypeError, and the result is checked against the
  target's non-configurable and, for a non-extensible target, all keys
  of both kinds, in the target's own key order.
- Reflect.ownKeys lists Symbols, in the trap's order for a proxy, and
  Reflect's other functions take Symbol keys. Object.freeze, seal,
  isFrozen and isSealed include a proxy's Symbols instead of throwing.
- Symbol key lists stay rooted and charged to the heap until released.
- new Proxy and Proxy.revocable reject a revoked target or handler.
- A typed array reached on the prototype chain as the receiver converts
  the value for an index it lacks.
- The eval redeclaration test asserts the runtime SyntaxError.
2026-11-29 22:20:58 -08:00
..