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

CJS: Module exports should be enumerable #2120

Merged
merged 1 commit into from
May 20, 2016
Merged

Conversation

arv
Copy link
Collaborator

@arv arv commented May 18, 2016

We created the properties on the module object as non enumerable.
This change makes them enumerable which is consistent with ES6 module
instance objects.

Fixes #2118

We created the properties on the module object as non enumerable.
This change makes them enumerable which is consistent with ES6 module
instance objects.

Fixes google#2118
@arv
Copy link
Collaborator Author

arv commented May 20, 2016

@johnjbarton PTAL

@johnjbarton
Copy link
Contributor

The tests check that the code generated is what we expect to be generated, but they don't seem to exactly check that the bug was fixed.

LGTM

@arv
Copy link
Collaborator Author

arv commented May 20, 2016

There is a feature test for this. When #1979 is done CJS will run almost all of the feature tests.

@arv arv merged commit 256ec2c into google:master May 20, 2016
@arv arv deleted the commonjs-enumerable branch May 20, 2016 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants