From 7dd2cd30af9974ad4e2c1868ca61ef0b0b5e75f6 Mon Sep 17 00:00:00 2001 From: Max Sherman Date: Tue, 9 May 2017 16:36:46 -0700 Subject: [PATCH] Fix Promise resolve callback error Reviewed By: theoy Differential Revision: D5032525 fbshipit-source-id: 19680cef70f11cccf2abf03d1c1b7e72ac32e43e --- local-cli/server/util/inspectorProxy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/local-cli/server/util/inspectorProxy.js b/local-cli/server/util/inspectorProxy.js index 1b5cbdf4c..092f87b2a 100644 --- a/local-cli/server/util/inspectorProxy.js +++ b/local-cli/server/util/inspectorProxy.js @@ -162,9 +162,9 @@ class Device { this._handlers.delete(name); reject(new Error('Timeout waiting for device')); }, DEVICE_TIMEOUT); - this._handlers.set(name, (...args) => { + this._handlers.set(name, arg => { clearTimeout(timerId); - fulfill(...args); + fulfill(arg); }); }); this._send({event: name});