Skip to content
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

Remove polyfill for Promise #1224

Merged
merged 1 commit into from
Dec 31, 2016

Conversation

fatso83
Copy link
Contributor

@fatso83 fatso83 commented Dec 31, 2016

The ramifications of letting the Promise polyfill enter the main Sinon code escaped me at the time I reviewed #1211, but it struck me when reviewing #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.

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.
@coveralls
Copy link

coveralls commented Dec 31, 2016

Coverage Status

Coverage remained the same at 96.351% when pulling a0475a8 on fatso83:remove-promise-polyfill-in-1211 into 1c8c7ab on sinonjs:master.

@fatso83 fatso83 merged commit 942fc53 into sinonjs:master Dec 31, 2016
@fatso83 fatso83 deleted the remove-promise-polyfill-in-1211 branch December 31, 2016 02:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants