Skip to content

Commit 7ff0d4e

Browse files
committed
Fix: polyfill should not override native Promise
2 parents 4638bd5 + 7b2e788 commit 7ff0d4e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/algorithms/helpers.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
*/
77
"use strict";
88

9-
require("es6-promise").polyfill();
9+
if (typeof Promise === "undefined") {
10+
require("es6-promise").polyfill();
11+
}
1012

1113
// ###
1214
exports.int32ToBuffer = function(v, b) {

0 commit comments

Comments
 (0)