@babel/runtime
Advanced tools
Comparing version 7.22.5 to 7.22.6
@@ -14,11 +14,8 @@ function dispose_SuppressedError(suppressed, error) { | ||
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(); | ||
for (; stack.length > 0;) try { | ||
var r = stack.pop(), | ||
p = r.d.call(r.v); | ||
if (r.a) return Promise.resolve(p).then(next, err); | ||
} catch (e) { | ||
return err(e); | ||
} | ||
@@ -25,0 +22,0 @@ if (hasError) throw error; |
@@ -14,11 +14,8 @@ function dispose_SuppressedError(suppressed, error) { | ||
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(); | ||
for (; stack.length > 0;) try { | ||
var r = stack.pop(), | ||
p = r.d.call(r.v); | ||
if (r.a) return Promise.resolve(p).then(next, err); | ||
} catch (e) { | ||
return err(e); | ||
} | ||
@@ -25,0 +22,0 @@ if (hasError) throw error; |
import _typeof from "./typeof.js"; | ||
export default function _using(stack, value, isAwait) { | ||
if (null == value) return value; | ||
if ("object" != _typeof(value)) throw new TypeError("using decarations can only be used with objects, null, or undefined."); | ||
if ("object" != _typeof(value)) throw new TypeError("using declarations can only be used with objects, null, or undefined."); | ||
if (isAwait) var dispose = value[Symbol.asyncDispose || Symbol["for"]("Symbol.asyncDispose")]; | ||
@@ -6,0 +6,0 @@ if (null == dispose && (dispose = value[Symbol.dispose || Symbol["for"]("Symbol.dispose")]), "function" != typeof dispose) throw new TypeError("Property [Symbol.dispose] is not a function."); |
var _typeof = require("./typeof.js")["default"]; | ||
function _using(stack, value, isAwait) { | ||
if (null == value) return value; | ||
if ("object" != _typeof(value)) throw new TypeError("using decarations can only be used with objects, null, or undefined."); | ||
if ("object" != _typeof(value)) throw new TypeError("using declarations can only be used with objects, null, or undefined."); | ||
if (isAwait) var dispose = value[Symbol.asyncDispose || Symbol["for"]("Symbol.asyncDispose")]; | ||
@@ -6,0 +6,0 @@ if (null == dispose && (dispose = value[Symbol.dispose || Symbol["for"]("Symbol.dispose")]), "function" != typeof dispose) throw new TypeError("Property [Symbol.dispose] is not a function."); |
{ | ||
"name": "@babel/runtime", | ||
"version": "7.22.5", | ||
"version": "7.22.6", | ||
"description": "babel's modular runtime helpers", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -5,3 +5,3 @@ # @babel/runtime | ||
See our website [@babel/runtime](https://babeljs.io/docs/en/babel-runtime) for more information. | ||
See our website [@babel/runtime](https://babeljs.io/docs/babel-runtime) for more information. | ||
@@ -8,0 +8,0 @@ ## Install |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
281803
5566