You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
the patchClass() function doesn't copy over constants from the patched class. This means that a patched XMLHttpRequest won't have the constants XMLHttpRequest.DONE, etc. This breaks the common pattern of:
var req = new XMLHttpRequest();
req.onreadystatechange = function() {
if (req.readyState === XMLHttpRequest.DONE) {
// do something with the result
}
};
patchClass() should copy over static properties of a class.