mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-27 06:43:19 +08:00
The position of an Error subclass's own `name` among its fields was found from identifier keys only, so a quoted `"name"` field, other quoted fields, and `this["name"] = ...` in a constructor were not seen, and `name` was listed last. Field keys and constructor assignments now read any statically spelled key: an identifier, a quoted string, a number in its canonical spelling, or a computed string literal.