aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-06-27 08:24:35 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-06-27 08:24:35 -0700
commit2eb885c1d8140106b9e292234456cc1482a5a5e1 (patch)
tree5123a2a5f73e443f9909b70b28f9632f09d8767f
parent1c46d887286350ca102708c7fb8ae090ad88bf31 (diff)
downloadbun-2eb885c1d8140106b9e292234456cc1482a5a5e1.tar.gz
bun-2eb885c1d8140106b9e292234456cc1482a5a5e1.tar.zst
bun-2eb885c1d8140106b9e292234456cc1482a5a5e1.zip
Regenerate
-rw-r--r--src/js/out/modules/node/util.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/js/out/modules/node/util.js b/src/js/out/modules/node/util.js
index 8fbdc2d6c..48b22871f 100644
--- a/src/js/out/modules/node/util.js
+++ b/src/js/out/modules/node/util.js
@@ -270,7 +270,7 @@ var isFunction = function(value) {
}, callbackifyOnRejected = function(reason, cb) {
if (!reason) {
var newReason = new Error("Promise was rejected with a falsy value");
- newReason.reason = reason, reason = newReason;
+ newReason.reason = reason, newReason.code = "ERR_FALSY_VALUE_REJECTION", reason = newReason;
}
return cb(reason);
}, callbackify = function(original) {
@@ -284,9 +284,9 @@ var isFunction = function(value) {
return maybeCb.apply(self, arguments);
};
original.apply(this, args).then(function(ret) {
- process.nextTick(cb, null, null, ret);
+ process.nextTick(cb, null, ret);
}, function(rej) {
- process.nextTick(callbackifyOnRejected, null, rej, cb);
+ process.nextTick(callbackifyOnRejected, rej, cb);
});
}
return Object.setPrototypeOf(callbackified, Object.getPrototypeOf(original)), Object.defineProperties(callbackified, getOwnPropertyDescriptors(original)), callbackified;