-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broken code in shims #944
Comments
For many parts of those questions, “I don’t know”. ;) That was the standard and popular Promise shim I found a long time ago. I don’t recall all the issues surrounding it now, but it was an issue with phantomjs, the bundler and mocha with the test scripts that made it hard to pull in directly as a dependency. Or maybe it was what MDN linked to directly and I didn’t realize it was packaged on npm? :) The shim is still required for several environments, I think. Certainly phantomjs. Possibly react or expo? If not, I’d love to remove it, since phantomjs is no longer maintained and it isn’t used for the test cases any more... I can look back into this though. :) |
Sorry, lost track of this. I'm working on the shims right now because react native is missing some pretty fundamental features... While fidgeting with that, I was reminded of this issue. :) I know phantomjs is dead. The only reason to support it is that the v4 tests still use it, but I can manage its shims independently. Also, those browser tests are having other issues anyways. I'm checking now to see what might break if I pull Promise out of the shims though. The main reason to provide it is because when I didn't lots of things broke. But 2016 were crazier times, and I think things seem better (less worse?) now. At the time copy-paste made the most sense, for reasons I cannot remember, but I agree, I'd rather import them if they are still needed. Anyhoo, overhauling the shims a bit right now... I'll tag this issue once I make the updates. |
This file and shim has been entirely removed in 5.0.10. Let me know if you find any other issues. :) Thanks! :) |
ethers.js/packages/shims/src/es6-promise.auto.js
Line 231 in a78ca7e
Also:
Math.random()
?See stefanpenner/es6-promise@375b0ea -- this was fixed 2.5 years ago upstream, apparently.
Those are all separate questions. ;-).
The text was updated successfully, but these errors were encountered: