rust-lang / book

The Rust Programming Language
https://doc.rust-lang.org/book/
Other
14.56k stars 3.31k forks source link

infra: modernize and improve rigor/safety of ferris.js #3937

Closed chriskrycho closed 1 month ago

chriskrycho commented 1 month ago
screenshots to show it still works ![CleanShot 2024-05-22 at 15 48 22@2x](https://github.com/rust-lang/book/assets/2403023/e44505b0-8f6b-43f8-bf8a-e98466d64dee) ![CleanShot 2024-05-22 at 15 48 11@2x](https://github.com/rust-lang/book/assets/2403023/af0a376b-484d-47e5-84f1-0563772e3d5c)

[^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.