aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-01-15 11:00:38 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-01-16 11:22:54 -0800
commitcf5f9df2114ad98cefab43e6b47eef0d5c380fef (patch)
treebd89ea2e41d4f7431cc514c08dcadcd34d5409c9 /src/bun.js
parent9eb4a4ff3a8a4b0babf3d7e1bb2188c7ef1bbac1 (diff)
downloadbun-cf5f9df2114ad98cefab43e6b47eef0d5c380fef.tar.gz
bun-cf5f9df2114ad98cefab43e6b47eef0d5c380fef.tar.zst
bun-cf5f9df2114ad98cefab43e6b47eef0d5c380fef.zip
Use a reusable symbol
Diffstat (limited to 'src/bun.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');