Files
scriptc/tests
Chris Tate d14c2ee05f Read AsyncLocalStorage options as JavaScript does and call snapshot callbacks without a receiver
new AsyncLocalStorage(options) read defaultValue and name as own data
properties, so inherited values and getters were ignored, and a name
that was not a string reached the compiled code unconverted. The options
are now read with a full property get (prototypes, getters, proxies,
the snapshot of a typed record or class instance) in Node's order:
defaultValue once, name to see whether it is defined and again for its
value. The name is kept as String(name); a Symbol throws Node's
TypeError, and an exception from a getter propagates. A class instance
whose class itself declares one of the two members, which a capsule does
not expose to the runtime, is refused with a "not supported yet" error.

A snapshot's runner called its callback with the runner's own receiver;
Node applies the callback to an undefined receiver.
2026-10-22 09:59:13 -05:00
..
…
2026-10-20 17:56:44 -05:00