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 IE specific hacks #477

Merged
merged 1 commit into from
Aug 9, 2023
Merged

Remove IE specific hacks #477

merged 1 commit into from
Aug 9, 2023

Conversation

fatso83
Copy link
Contributor

@fatso83 fatso83 commented Aug 7, 2023

Purpose (TL;DR) - mandatory

We no longer support Internet Explorer, so remove those hacks.

We no longer support Internet Explorer.
@codecov
Copy link

codecov bot commented Aug 7, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.66% 🎉

Comparison is base (871f5c8) 95.80% compared to head (0936e31) 96.47%.

❗ Current head 0936e31 differs from pull request most recent head ab5bd36. Consider uploading reports for the commit ab5bd36 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #477      +/-   ##
==========================================
+ Coverage   95.80%   96.47%   +0.66%     
==========================================
  Files           2        2              
  Lines         691      680      -11     
==========================================
- Hits          662      656       -6     
+ Misses         29       24       -5     
Flag Coverage Δ
unit 96.47% <ø> (+0.66%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
src/fake-timers-src.js 96.49% <ø> (+0.69%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

// setImmediate is not a standard function
// avoid adding the prop to the window object if not present
if (setImmediatePresent) {
_global.setImmediate = _global.setImmediate;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Node actually has setImmediate as well

Copy link
Contributor Author

@fatso83 fatso83 Aug 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, not removing that. Just the IE (IE 8 and below) specific x=x hack/workaround to make the prop writable. See https://www.adequatelygood.com/Replacing-setTimeout-Globally.html

setImmediate is still added to the timers way below (line 1032)

@fatso83 fatso83 merged commit ad723e4 into sinonjs:main Aug 9, 2023
8 checks passed
@fatso83 fatso83 deleted the remove-ie-hacks branch August 9, 2023 07:35
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.

None yet

2 participants