diff --git a/packager/react-packager/src/AssetServer/index.js b/packager/react-packager/src/AssetServer/index.js index 589bded7c242b1..15a13f2ba463b6 100644 --- a/packager/react-packager/src/AssetServer/index.js +++ b/packager/react-packager/src/AssetServer/index.js @@ -21,7 +21,7 @@ const createTimeoutPromise = (timeout) => new Promise((resolve, reject) => { }); function timeoutableDenodeify(fsFunc, timeout) { return function raceWrapper(...args) { - return new Promise.race([ + return Promise.race([ createTimeoutPromise(timeout), Promise.denodeify(fsFunc).apply(this, args) ]);