Skip to content
#

polyfill

Here are 460 public repositories matching this topic...

eu81273
eu81273 commented May 19, 2017

If the document.domain property is set in the page, _has module throws error "Access is denied" when try to check window's property for example 'hasOwnProperty'.

So I think it is better to change _has module like below.

var hasOwnProperty = {}.hasOwnProperty;
module.exports = function(it, key){
  try {
    return hasOwnProperty.call(it, key);
  } catch(e){
    return 
luhn
luhn commented Sep 7, 2015

Perhaps I'm overlooking it, but I don't see documentation for how to develop on the project. Doesn't need to be much, just quick instructions on how to run the build script and also say what files you should be developing on. (It's not immediately obvious what files are sourced for the build versus what files are result from the build.)

prabirshrestha
prabirshrestha commented Sep 29, 2017

https://developers.google.com/web/updates/2017/09/abortable-fetch

Currently it is only implemented in Firefox 57 and is coming to other browsers soon.

const controller = new AbortController();
const signal = controller.signal;

setTimeout(() => controller.abort(), 5000);

fetch(url, { signal }).then(response => {
  return response.text();
}).then(text => {
  console.lo
ai
ai commented May 24, 2017

We loved caniuse-db, but it uses 7 MB and contains many irrelevant data.

This is why @ben-eb created caniuse-lite. It is just a copy of latest caniuse-db (he wrote autorelease script) with less data and better compression. Only 1 MB.

Autoprefixer and Browserslist moved to caniuse-lite. So let’s use it here too. It is very easy, API is the sam

rylabo
rylabo commented Apr 18, 2017

Viewing the test page on Firefox has all tests pass except the one that checks the left position. The tests will all pass in responsive design mode, but not in normal viewing mode.

To reproduce:

  • Open the test page in Firefox, not in responsive design view
  • Resizing the entire browser window and refreshing will still reproduce the error

The test seems to be always off by exactl

Improve this page

Add a description, image, and links to the polyfill topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the polyfill topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.