Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Merged
davepagurek merged 3 commits intoprocessing:dev-2.0fromHughJacks:fix-fes-error
Apr 22, 2025

Conversation

@HughJacks
Copy link

Resolves#7678

Changes:

Added a list of protected properties inmain.js to prevent p5 from overriding certain window properties:

Added a check forhasOwnProperty infes_core.js to prevent inherited properties like constructor from causing errors:

Changedcore/main.js from:

// Attach its properties to the windowfor(constpinthis){if(this.hasOwnProperty(p)){if(p[0]==='_')continue;bindGlobal(p);}}

to:

constprotectedProperties=['constructor','length'];// Attach its properties to the windowfor(constpinthis){if(this.hasOwnProperty(p)){if(p[0]==='_'||protectedProperties.includes(p))continue;bindGlobal(p);}}

Changedcore/friendly_errors/fes_core.js from:

if(fxns.[lowercase]&&!context[fxns[lowercase]]&&typeofcontext[prop]==='function'){

to:

if(fxns.hasOwnProperty(lowercase)&&!context[fxns[lowercase]]&&typeofcontext[prop]==='function'){

Screenshots of the change:

PR Checklist

HughJacksand others added3 commitsApril 20, 2025 14:11
Prevented window.constructor and window.length from being overwritten in bindGlobal
@welcome
Copy link

welcomebot commentedApr 21, 2025

🎉 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!

Copy link
Contributor

@davepagurekdavepagurek left a 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!

@davepagurekdavepagurek merged commiteac15d9 intoprocessing:dev-2.0Apr 22, 2025
2 checks passed
@davepagurek
Copy link
Contributor

@all-contributors please add@HughJacks for code

@allcontributors
Copy link
Contributor

@davepagurek

I've put upa pull request to add@HughJacks! 🎉

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@davepagurekdavepagurekdavepagurek approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@HughJacks@davepagurek

[8]ページ先頭

©2009-2025 Movatter.jp