Files
vectorcraft/crates/scriptcheck
dotCooCoo 904cf66f86 Scripts: a method replaced in a loop or a later function, and a global member used as a value, end the own-method exemption
- 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.
2026-12-04 00:49:56 -08:00
..