question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Weekly tests with polyfill combinations are failing in IE8

See original GitHub issue

see : https://github.com/Financial-Times/polyfill-library/runs/4280696106?check_suite_focus=true

Browser: ie/8.0 Test config: targeted / combined / shard 1   ✘ 610 tests, 46 failures  116 seconds to complete


Failures:
 - ie/8.0:
    -> TextEncoder passes the feature detect
       http://bs-local.com:9876/test?includePolyfills=yes&always=no&feature=TextEncoder
       false == true
 - ie/8.0:
    -> TextEncoder TextEncoder has a valid constructor
       http://bs-local.com:9876/test?includePolyfills=yes&always=no&feature=TextEncoder
       'TextEncoder' is undefined
 - ie/8.0:
    -> TextEncoder TextDecoder has a valid constructor
       http://bs-local.com:9876/test?includePolyfills=yes&always=no&feature=TextEncoder
       'TextDecoder' is undefined
 - ie/8.0:
    -> TextEncoder TextDecoder decodes encoded strings
       http://bs-local.com:9876/test?includePolyfills=yes&always=no&feature=TextEncoder
       'TextEncoder' is undefined
...

I can’t immediately see which change introduced this regression.

There is an exception on : polyfills/Object/defineProperty/polyfill.js:37 This explains why polyfill tests fail at some point. Something throws an exception, stopping execution of the polyfill bundle.

if (!supportsAccessors) {
	throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);
}

But there are a lot of callers and most have a try catch.

To reproduce manually in IE8 :

http://bs-local.com:9876/test?includePolyfills=yes&always=no&feature=WeakMap&polyfillCombinations=yes

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
JakeChampioncommented, Dec 7, 2021

I think I have now found the fix for this and also found another bug to fix 😄

1reaction
JakeChampioncommented, Dec 7, 2021

You’re right @romainmenke I did miss this - I’ll see if I have time to look into it today - thank you for pinging me on this!

Read more comments on GitHub >

github_iconTop Results From Across the Web

I Used The Web For A Day On Internet Explorer 8
If we try to run the Array.indexOf method in IE8, it will fail. But if we're already writing in ES5, what else can...
Read more >
ESLint checks for missing polyfills in your web apps ... - Medium
Avoiding Uncaught and unexpected — ESLint checks for missing polyfills in your web apps. TL;DR; this eslint rule will give you feedback if...
Read more >
Cross Browser Compatibility Issues With Form Input Types
Newly introduced form input types posed a plethora of cross browser compatibility issues, which in some cases dampened UX or lead to faulty...
Read more >
ie-love - npm
Combo polyfill for IE8 and below. ... x.x, and ie-love for IE8 and below, and load jQuery 2. ... cloneNode():p.test(a)?(d.cache[a]=d.
Read more >
Internet Explorer 11 testing - Office Add-ins - Microsoft Learn
Office on the web no longer opens in Internet Explorer. · AppSource still tests for combinations of platform and Office desktop versions that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found