Fix how _waitForDownload is treated by the RPC code.

This commit is contained in:
Mark Rowe 2017-10-11 09:29:53 -07:00
parent 0249722a02
commit 718ee3296c

View File

@ -128,6 +128,7 @@ util.createMethods(Realm.prototype, objectTypes.REALM, [
'removeListener',
'removeAllListeners',
'close',
'_waitForDownload',
]);
// Mutating methods:
@ -189,12 +190,6 @@ Object.defineProperties(Realm, {
rpc.clearTestState();
},
},
_waitForDownload: {
value: function(_config, sessionCallback, callback) {
sessionCallback();
callback();
}
},
});
for (let i = 0, len = debugHosts.length; i < len; i++) {