Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(bundleSource): patch acorn with defineProperty to avoid override mistake #2549

Merged
merged 1 commit into from
Feb 27, 2021

Conversation

dckc
Copy link
Member

@dckc dckc commented Feb 27, 2021

This avoids the .constructor assignment that prevents us from cleaning up the console noise.

fixes #2324

@dckc dckc changed the title fix(bundleSource): KLUDGE-around .constructor assignment in acorn fix(bundleSource): patch acorn with defineProperty to avoid override mistake Feb 27, 2021
@dckc dckc force-pushed the 2324-acorn-ses-kludge branch from 1dece89 to 4d65039 Compare February 27, 2021 04:51
@dckc dckc marked this pull request as ready for review February 27, 2021 04:51
Copy link
Member

@michaelfig michaelfig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member

@erights erights left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for finding this!

Copy link
Member

@erights erights left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, don't do it this way. It is a bug of acorn 7 already fixed in acorn 8. We should just update all our acorn dependencies to 8.

@dckc
Copy link
Member Author

dckc commented Feb 27, 2021

Ok

Copy link
Member

@erights erights left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
See #2551 (comment)

@erights erights enabled auto-merge (squash) February 27, 2021 19:18
@erights
Copy link
Member

erights commented Feb 27, 2021

Should we fix SES-shim by just adding this same patch there?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

get rid of <[Object: null prototype] {}> console noise
3 participants