From 4dd1fd38775c99f553d6146ddcd86ea1966f7d86 Mon Sep 17 00:00:00 2001 From: cpojer Date: Mon, 16 Nov 2015 16:30:04 -0800 Subject: [PATCH] Use `Object.create(null)` in HasteResolver. --- src/resolvers/HasteResolver.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resolvers/HasteResolver.js b/src/resolvers/HasteResolver.js index 2494fd158d5c..c0e1453ebb8e 100644 --- a/src/resolvers/HasteResolver.js +++ b/src/resolvers/HasteResolver.js @@ -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]