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

Set null prototype on namespace objects. #3136

Merged
merged 9 commits into from Sep 26, 2019

Conversation

rpamely
Copy link
Contributor

@rpamely rpamely commented Sep 26, 2019

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

List any relevant issue numbers: #3096

Description

Set null prototype on namespace objects by using __proto__. Previously it was not set so used default Object.prototype. ECMAScript spec defines ES module namespaces as exotic objects and says that their [[Prototype]] should be null.

@lukastaegert
Copy link
Member

Can you check the remaining test failures? It seems to be just four left

@lukastaegert
Copy link
Member

Ah, now it is running :)

@lukastaegert
Copy link
Member

And sorry, there are some conflicts with master now 🙄

@codecov
Copy link

codecov bot commented Sep 26, 2019

Codecov Report

Merging #3136 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3136      +/-   ##
==========================================
+ Coverage   89.31%   89.31%   +<.01%     
==========================================
  Files         165      165              
  Lines        5726     5727       +1     
  Branches     1737     1737              
==========================================
+ Hits         5114     5115       +1     
  Misses        379      379              
  Partials      233      233
Impacted Files Coverage Δ
src/ast/variables/NamespaceVariable.ts 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a1ec55c...d7b0e41. Read the comment docs.

@rpamely
Copy link
Contributor Author

rpamely commented Sep 26, 2019

@lukastaegert Think it's good now, tests are passing!

Copy link
Member

@lukastaegert lukastaegert left a comment

Choose a reason for hiding this comment

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

👍

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.

None yet

2 participants