Commit Graph

5 Commits

Author SHA1 Message Date
Chris Krycho
3a30e4c1fb Apply dprint fmt to active files in the repo 2024-12-02 16:09:20 -07:00
Chris Krycho
40993e8ec7 infra: modernize and improve rigor/safety of ferris.js
- Use `let` instead of `var` throughout. All modern browsers support it
  and have for many years, even the now-EOL IE11.[^ie]
- Add a `@ts-check` annotation so that anyone working on a TS-enabled
  editor will get feedback inline about cases they may otherwise miss.
- Add JSDoc-based type definitions for the script, and fix some errors
  that may occur at runtime. (These will be rare if they happen, but
  getting rid of them is still a win!)

[^ie]: IE11 did not correctly support the semantics of `let` for `for`
    loops, but the uses in the existing code here already used `var` in
    a way which would trigger the same behavior as using `let` does.
2024-05-22 15:46:37 -06:00
Ambrose Chua
d34ea0538f Shrink and move ferris when possible 2021-08-15 15:30:50 +08:00
Carol (Nichols || Goulding)
4921fde29a Remove unsafe Ferris designations from code. Fixes #2555 2021-07-08 21:43:57 -04:00
Steve Klabnik
1fedfc4b96 move the book to the top level 2018-11-20 13:45:05 -05:00