-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
84a4856
commit 25b50a1
Showing
3 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
var _Object$create = require("@babel/runtime-corejs3/core-js/object/create"); | ||
var _Promise = require("@babel/runtime-corejs3/core-js/promise"); | ||
function dispose_SuppressedError(suppressed, error) { | ||
return dispose_SuppressedError = function dispose_SuppressedError(suppressed, error) { | ||
this.suppressed = suppressed, this.error = error, this.stack = new Error().stack; | ||
}, dispose_SuppressedError.prototype = _Object$create(Error.prototype, { | ||
constructor: { | ||
value: dispose_SuppressedError, | ||
writable: !0, | ||
configurable: !0 | ||
} | ||
}), new dispose_SuppressedError(suppressed, error); | ||
} | ||
function _dispose(stack, error, hasError, SuppressedError) { | ||
function next() { | ||
if (0 !== stack.length) { | ||
var r = stack.pop(); | ||
if (r.a) return _Promise.resolve(r.d.call(r.v)).then(next, err); | ||
try { | ||
r.d.call(r.v); | ||
} catch (e) { | ||
return err(e); | ||
} | ||
return next(); | ||
} | ||
if (hasError) throw error; | ||
} | ||
function err(e) { | ||
return error = hasError ? new (SuppressedError || dispose_SuppressedError)(e, error) : e, hasError = !0, next(); | ||
} | ||
return next(); | ||
} | ||
module.exports = _dispose, module.exports.__esModule = true, module.exports["default"] = module.exports; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
function dispose_SuppressedError(suppressed, error) { | ||
return dispose_SuppressedError = function dispose_SuppressedError(suppressed, error) { | ||
this.suppressed = suppressed, this.error = error, this.stack = new Error().stack; | ||
}, dispose_SuppressedError.prototype = Object.create(Error.prototype, { | ||
constructor: { | ||
value: dispose_SuppressedError, | ||
writable: !0, | ||
configurable: !0 | ||
} | ||
}), new dispose_SuppressedError(suppressed, error); | ||
} | ||
function _dispose(stack, error, hasError, SuppressedError) { | ||
function next() { | ||
if (0 !== stack.length) { | ||
var r = stack.pop(); | ||
if (r.a) return Promise.resolve(r.d.call(r.v)).then(next, err); | ||
try { | ||
r.d.call(r.v); | ||
} catch (e) { | ||
return err(e); | ||
} | ||
return next(); | ||
} | ||
if (hasError) throw error; | ||
} | ||
function err(e) { | ||
return error = hasError ? new (SuppressedError || dispose_SuppressedError)(e, error) : e, hasError = !0, next(); | ||
} | ||
return next(); | ||
} | ||
module.exports = _dispose, module.exports.__esModule = true, module.exports["default"] = module.exports; |