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 Dec 7, 2015
1 parent 59e4c74 commit 4dd1fd3
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 4dd1fd3

Please sign in to comment.