diff options
Diffstat (limited to 'node_modules/@babel/runtime/helpers/esm/using.js')
| -rw-r--r-- | node_modules/@babel/runtime/helpers/esm/using.js | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/node_modules/@babel/runtime/helpers/esm/using.js b/node_modules/@babel/runtime/helpers/esm/using.js index f5593c85..6918b2d3 100644 --- a/node_modules/@babel/runtime/helpers/esm/using.js +++ b/node_modules/@babel/runtime/helpers/esm/using.js @@ -1,12 +1,11 @@ -import _typeof from "./typeof.js"; -export default function _using(o, e, n) { - if (null == e) return e; - if ("object" != _typeof(e)) throw new TypeError("using declarations can only be used with objects, null, or undefined."); - if (n) var r = e[Symbol.asyncDispose || Symbol["for"]("Symbol.asyncDispose")]; - if (null == r && (r = e[Symbol.dispose || Symbol["for"]("Symbol.dispose")]), "function" != typeof r) throw new TypeError("Property [Symbol.dispose] is not a function."); +export default function _using(o, n, e) { + if (null == n) return n; + if (Object(n) !== n) throw new TypeError("using declarations can only be used with objects, functions, null, or undefined."); + if (e) var r = n[Symbol.asyncDispose || Symbol["for"]("Symbol.asyncDispose")]; + if (null == r && (r = n[Symbol.dispose || Symbol["for"]("Symbol.dispose")]), "function" != typeof r) throw new TypeError("Property [Symbol.dispose] is not a function."); return o.push({ - v: e, + v: n, d: r, - a: n - }), e; + a: e + }), n; }
\ No newline at end of file |
