Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update README.md to fix HTTPResponseError (#1135)
In the 'Handling client and server errors', the class HTTPResponseError constructor has to call 'super()' before accessing 'this.response' Not doing this throws the following exception: "ReferenceError: Must call super constructor in derived class before accessing 'this' or returning from derived constructor" Fix: This just changes the order so super(...) is first, then this.response... MDN Reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/super#using_super_in_classes
- Loading branch information