leopard-js / sb-edit

Javascript library for manipulating Scratch project files
MIT License
55 stars 15 forks source link

toLeopard: Sprites named "Math" and "Date" break math and time blocks in their own scripts #133

Closed towerofnix closed 5 months ago

towerofnix commented 6 months ago

If you have a sprite named Math or Date, its own name will actually overshadow these browser-provided globals! This causes assorted errors when generated code accesses those globals.