I don't think we need to do this.
For everyone needs this mock, he shall spy this function and simulate the function invoke call on his own to simulate a success or an error.
We don't need to re-implement DOMRequest here, do we?