aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/util.exports.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/bun.js/util.exports.js')
-rw-r--r--src/bun.js/util.exports.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bun.js/util.exports.js b/src/bun.js/util.exports.js
index c399e0853..a3067dae6 100644
--- a/src/bun.js/util.exports.js
+++ b/src/bun.js/util.exports.js
@@ -510,8 +510,7 @@ var _extend = (exports._extend = function (origin, add) {
function hasOwnProperty(obj, prop) {
return Object.prototype.hasOwnProperty.call(obj, prop);
}
-var kCustomPromisifiedSymbol =
- typeof Symbol !== "undefined" ? Symbol("util.promisify.custom") : void 0;
+var kCustomPromisifiedSymbol = Symbol.for("util.promisify.custom");
var promisify = (exports.promisify = function promisify(original) {
if (typeof original !== "function")
throw new TypeError('The "original" argument must be of type Function');