Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork3.7k
Fixed Error in FES prevents message from being shown, Prevented 'window' properties from being overwritten#7765
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
…tected properties from being bound.
Prevented window.constructor and window.length from being overwritten in bindGlobal
🎉 Thanks for opening this pull request! Please check out ourcontributing guidelines if you haven't already. And be sure to add yourself to thelist of contributors on the readme page! |
davepagurek left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thanks for the fix, looks good!
eac15d9 intoprocessing:dev-2.0Uh oh!
There was an error while loading.Please reload this page.
davepagurek commentedApr 22, 2025
@all-contributors please add@HughJacks for code |
I've put upa pull request to add@HughJacks! 🎉 |
Resolves#7678
Changes:
Added a list of protected properties in
main.jsto prevent p5 from overriding certain window properties:Added a check for
hasOwnPropertyinfes_core.jsto prevent inherited properties like constructor from causing errors:Changed
core/main.jsfrom:to:
Changed
core/friendly_errors/fes_core.jsfrom:to:
Screenshots of the change:
PR Checklist
npm run lintpasses