Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The ramifications of letting the Promise polyfill enter the main Sinon code escaped me at the time I reviewed sinonjs#1211, but it struck me when reviewing sinonjs#1215 that had similar issues. In short: having the polyfill bundled with Sinon will lead to false negatives: running tests using Sinon will then give the impression that code works on platforms that does not support the features that were polyfilled. This reverts the introduction of `native-promise-only` in the main code and moves it to its proper place: the test code.
- Loading branch information