Files
scriptc/tests
Malte UblandClaude Opus 5.5 256b7cd112 Inspect program-declared Error subclasses with Node's constructor-name header
Inspecting (util.format, %s, util.inspect, console) a value of an Error
class whose hierarchy contains program-declared subclasses was refused:
errorRenderable counted the subclass layout's repeated builtin prefix
fields (name, message) as declared fields. Those are the runtime slots
the error base already renders, so field-less subclasses now render.

The runtime builds the stackless base from the instance's `name`
(`[Error: m]`); Node's improveStack also names the constructor. Each
program class (most derived first) is an instanceof arm applying that
rule: `[Plain [Error]: m]`, or `[FetchFailedError: m]` when the
constructor name contains the error's name. Runtime error classes keep
their own header.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 05:04:46 -07:00
..
2026-07-22 18:08:04 -05:00
2026-10-20 02:40:17 -05:00
2026-10-20 02:40:17 -05:00
2026-10-20 02:40:17 -05:00