mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 05:22:58 -05:00
A function body that assigns `$.global.name`, `globalThis.name` or `$.global['name']` may run after a later literal gives `name` its methods, as `this.name` already did. The assignment now records the name as reassigned later, so the literal's later calls keep reporting the write. An assignment in the global code runs once and still leaves a later literal's methods the script's own. The shadowing test is split so the named-global case and the computed-key case each check their own line.