diff options
author | 2023-10-31 09:54:48 +0300 | |
---|---|---|
committer | 2023-10-30 23:54:48 -0700 | |
commit | 732650d6a43d235d36a9bf8717766e012f445461 (patch) | |
tree | f8a3fa8806412cec30510a1489709da1225197a9 /src/js/node/util.js | |
parent | b29d68bbaf8d759a9063d32944776064bf732659 (diff) | |
download | bun-732650d6a43d235d36a9bf8717766e012f445461.tar.gz bun-732650d6a43d235d36a9bf8717766e012f445461.tar.zst bun-732650d6a43d235d36a9bf8717766e012f445461.zip |
fix: provide nodejs compat for dns methods wrapped with util.promisify (#6748)
* fix: add nodejs compat for dns methods wrapping with util.promisify
* fix: use single symbol for util.promisify.custom
* style: linting
Diffstat (limited to 'src/js/node/util.js')
-rw-r--r-- | src/js/node/util.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/node/util.js b/src/js/node/util.js index dae341448..2002eed25 100644 --- a/src/js/node/util.js +++ b/src/js/node/util.js @@ -147,7 +147,7 @@ var _extend = function (origin, add) { } return origin; }; -var kCustomPromisifiedSymbol = Symbol.for("util.promisify.custom"); +var kCustomPromisifiedSymbol = Symbol.for("nodejs.util.promisify.custom"); var promisify = function promisify(original) { if (typeof original !== "function") throw new TypeError('The "original" argument must be of type Function'); if (kCustomPromisifiedSymbol && original[kCustomPromisifiedSymbol]) { |