Skip to content
#

ponyfill

Here are 52 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 
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

Improve this page

Add a description, image, and links to the ponyfill 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 ponyfill topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.