Break JS circular ref to help garbage collect

This commit is contained in:
Clement 2019-08-07 13:19:53 -07:00
parent 0b72e4dc60
commit ec9d13700d

View file

@ -40,6 +40,9 @@ module.exports = {
response = { statusCode: httpRequest.status };
}
callback(error, response, optionalCallbackParameter);
// Break circular reference to httpRequest so the engine can garbage collect it.
httpRequest.onreadystatechange = null;
}
};
if (typeof options === 'string') {