mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 05:22:58 -05:00
- A loop that assigns `local.saveAs` or `local['saveAs']` marks `local` as assigned in that loop, so a call earlier in the loop writes a file. - A function body that replaces a variable's write method, declared anywhere in the file, ends the exemption for that variable's calls. A variable the innermost body declares itself is left alone, and a key whose escapes do not decode counts as a write method. - `$.global.local`, `this.local` and `globalThis.local` used as a value forget the variable's methods as `$.global['local']` does. A variable of the same name that the function body declares keeps its own. - The test with two `a.saveAs(f)` calls puts them on separate lines and checks both.