Skip to content

Commit

Permalink
Use Object.create(null) in HasteResolver.
Browse files Browse the repository at this point in the history
  • Loading branch information
cpojer committed Nov 17, 2015
1 parent 40f1e1e commit a653f70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resolvers/HasteResolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class HasteResolver {
return Promise.all(
response.dependencies.map(module => {
if (!deps.resolvedModules[module.path]) {
deps.resolvedModules[module.path] = {};
deps.resolvedModules[module.path] = Object.create(null);
}
response.getResolvedDependencyPairs(module).forEach((pair) =>
deps.resolvedModules[module.path][pair[0]] = pair[1]
Expand Down

0 comments on commit a653f70

Please sign in to comment.