You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current polyfill implementation doesn't match the Readme:
function fetchJSON(filename) {
// Return a Promise that represents the fetch:
return new Promise(function(resolver){
// The resolver is how a Future is satisfied. It has reject(), accept(),
// and resolve() methods that your code can use to inform listeners with:
var xhr = new XMLHttpRequest();
xhr.open("GET", filename, true);
xhr.send();
xhr.onreadystatechange = function() {
if (xhr.readyState == 4) {
try {
resolver.accept(JSON.parse(xhr.responseText));
} catch(e) {
resolver.reject(e);
}
}
}
});
}
There is no accept, only fulfill. Also noticed mentions of future not changed to promise. I'm in the middle of coding something now but I'll take a more detailed look at this later and possibly issue a pull.
The text was updated successfully, but these errors were encountered:
The current polyfill implementation doesn't match the Readme:
There is no accept, only fulfill. Also noticed mentions of future not changed to promise. I'm in the middle of coding something now but I'll take a more detailed look at this later and possibly issue a pull.
The text was updated successfully, but these errors were encountered: