feat: use pnpm & lock core-js shim
This commit is contained in:
@@ -145,8 +145,8 @@ EventEmitter.prototype.emit = function emit(type) {
|
||||
if (er.error instanceof Error || er.error instanceof Throwable) {
|
||||
throw er.error; // Unhandled 'error' event
|
||||
}
|
||||
if (er.cause instanceof Error || er.error instanceof Throwable) {
|
||||
throw er.error; // Unhandled 'error' event
|
||||
if (er.cause instanceof Error || er.cause instanceof Throwable) {
|
||||
throw er.cause; // Unhandled 'error' event
|
||||
}
|
||||
// At least give some kind of context to the user
|
||||
var err = new Error('Unhandled error.' + (er ? ' (' + (er.message || er.error || er.cause || er) + ')' : ''));
|
||||
|
||||
@@ -715,6 +715,7 @@ function callbackify(original) {
|
||||
// implications (stack, `uncaughtException`, `async_hooks`)
|
||||
// @ts-ignore
|
||||
original.apply(this, args)
|
||||
// @ts-ignore
|
||||
.then(function (ret) { process.nextTick(cb.bind(null, null, ret)) },
|
||||
function (rej) { process.nextTick(callbackifyOnRejected.bind(null, rej, cb)) });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user