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 non-extendable objects regression of 1.1.0 #5658

Merged
merged 2 commits into from
Jul 27, 2017
Merged

Fix non-extendable objects regression of 1.1.0 #5658

merged 2 commits into from
Jul 27, 2017

Conversation

mourner
Copy link
Member

@mourner mourner commented Jul 24, 2017

Closes #5650 until we figure out a less hacky solution. Tested it locally and it seems to work. I put the redefine in Util because it is currently included first in the Rollup build, but this is fragile. The advantage of this solution is that it changes just a few lines of code. cc @calvinmetcalf @perliedman @IvanSanchez

@mourner mourner requested a review from perliedman July 24, 2017 12:55
@mourner
Copy link
Member Author

mourner commented Jul 24, 2017

Looks like this hack makes Phantom go crazy. Not sure how to fix the tests...

@mourner
Copy link
Member Author

mourner commented Jul 24, 2017

OK the tests seem to be running OK! Had to upgrade the Node version on Travis after some deps upgrades because of some compatibility bugs.

Copy link
Member

@perliedman perliedman left a comment

Choose a reason for hiding this comment

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

👍 nice hack! Given the current situation I think this is good solution.

@jdalton
Copy link

jdalton commented Sep 16, 2019

This is breaking in an environment where Object methods are frozen and so they cannot be overwritten and throw instead.

Update:

Maybe wrapping it in a try-catch would help.

Update:

PR #6806 created

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.

in 1.1.0 all objects are non extendable
3 participants