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

Use Object.create(null) in a few more places. #78

Merged
merged 1 commit into from
Mar 18, 2017
Merged

Use Object.create(null) in a few more places. #78

merged 1 commit into from
Mar 18, 2017

Conversation

jdalton
Copy link
Contributor

@jdalton jdalton commented Mar 18, 2017

I noticed while trying to load lodash-es that an error occured here because I had an identifier named toString and the map as a vanilla object and so had a toString method and not the array it was expecting:

var locals = map[__ported] || [];

@jdalton
Copy link
Contributor Author

jdalton commented Mar 18, 2017

This should totally have a unit test but I'm not super well versed yet with the setup so it may be easier for you to add in a subsequent commit.

@benjamn benjamn merged commit b83a8e7 into benjamn:master Mar 18, 2017
benjamn pushed a commit that referenced this pull request Mar 18, 2017
@jdalton jdalton deleted the map branch March 18, 2017 17:54
@jdalton jdalton mentioned this pull request Apr 3, 2017
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants