Closed sktguha closed 3 years ago
In https://github.com/then/promise/blob/91b7b4cb6ad0cacc1c70560677458fe0aac2fa67/src/core.js#L55 for checking whether the promise constructor is called with new it is better to use new target https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/new.target if it is accepted the change then I can make a PR for this
This does not seem to be worth working on, given that the current approach works.
In https://github.com/then/promise/blob/91b7b4cb6ad0cacc1c70560677458fe0aac2fa67/src/core.js#L55 for checking whether the promise constructor is called with new it is better to use new target https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/new.target if it is accepted the change then I can make a PR for this