mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-28 06:53:42 +08:00
An Error's view had no prototype or a holder of its default name and message, so Object.getPrototypeOf(new Error()) was Object.prototype or a fresh object. A view of an error built as an Error, whose prototype is still the one its view starts with, now answers Error.prototype. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>