Subclassing XMLHttpRequest? ```class Request(): XM...
# javascript
k
Subclassing XMLHttpRequest?
Copy code
class Request(): XMLHttpRequest() {}
This throws an error because the compiled code doesn’t call the XMLHttpRequest constructor
g
Why do you want to subclass it?
k
To map it to an Expect/Actual class
b
Try to use
typealias
instead
or wrap API