Merge pull request #16063 from Atlante45/fix/requesjs

BUGZ-1242: Fix linux specific script engine crash
This commit is contained in:
Howard Stearns 2019-08-16 11:52:14 -07:00 committed by GitHub
commit 65ee21bb01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,10 +40,10 @@ 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;
callback(error, response, optionalCallbackParameter);
}
};
if (typeof options === 'string') {