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

Avoid adding __filemeta to non-extensible objects #798

Merged

Conversation

jchadwick
Copy link
Contributor

Description

Currently, the __filemeta property is added to all exports, even if they are not extensible, which causes an error at runtime, as detailed in #795. This only executes the Object.defineProperty call if the object is extensible (i.e. Object.isExtensible(ID) == true)

Fixes #795

@pedronauck pedronauck merged commit 794ebc4 into doczjs:dev Apr 16, 2019
pedronauck pushed a commit that referenced this pull request Apr 16, 2019
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.

2 participants