Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
Replace Promise.accept() with Promise.resolve()
Browse files Browse the repository at this point in the history
I believe this existed in a previous version of Chrome but that's no longer the case.
  • Loading branch information
alokmenghrajani committed Sep 6, 2016
1 parent 0645c79 commit 72bfdf5
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
3 changes: 2 additions & 1 deletion dist/jose-commonjs.js
Expand Up @@ -368,7 +368,7 @@ WebCryptographer.prototype.decrypt = function(cek_promise, aad, iv, cipher_text,
throw new Error("compare failed");
}
}
return Promise.accept(null);
return Promise.resolve(null);
});
});
};
Expand Down Expand Up @@ -747,6 +747,7 @@ var getKeyUsageByAlg = function(alg) {
throw Error("unsupported algorithm: " + alg);
}
};

/*-
* Copyright 2014 Square Inc.
*
Expand Down
3 changes: 2 additions & 1 deletion dist/jose-testing.js
Expand Up @@ -371,7 +371,7 @@ WebCryptographer.prototype.decrypt = function(cek_promise, aad, iv, cipher_text,
throw new Error("compare failed");
}
}
return Promise.accept(null);
return Promise.resolve(null);
});
});
};
Expand Down Expand Up @@ -750,6 +750,7 @@ var getKeyUsageByAlg = function(alg) {
throw Error("unsupported algorithm: " + alg);
}
};

/*-
* Copyright 2014 Square Inc.
*
Expand Down
3 changes: 2 additions & 1 deletion dist/jose.js
Expand Up @@ -373,7 +373,7 @@ WebCryptographer.prototype.decrypt = function(cek_promise, aad, iv, cipher_text,
throw new Error("compare failed");
}
}
return Promise.accept(null);
return Promise.resolve(null);
});
});
};
Expand Down Expand Up @@ -752,6 +752,7 @@ var getKeyUsageByAlg = function(alg) {
throw Error("unsupported algorithm: " + alg);
}
};

/*-
* Copyright 2014 Square Inc.
*
Expand Down

0 comments on commit 72bfdf5

Please sign in to comment.