summaryrefslogtreecommitdiff
path: root/node_modules/@babel/runtime/helpers/using.js
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2023-12-21 22:46:53 +0800
committerlittleblack111 <littleblack11111@gmail.com>2023-12-21 22:46:53 +0800
commitf06956efd2dc4bf77244a9fcce2b883a00b925af (patch)
tree0123cb73ce67f1f4b17e1d6cbabff076ee44e31b /node_modules/@babel/runtime/helpers/using.js
parent8d980c13970c15b6d2312b6fc4ac51698dd0d220 (diff)
updated node modules
Diffstat (limited to 'node_modules/@babel/runtime/helpers/using.js')
-rw-r--r--node_modules/@babel/runtime/helpers/using.js17
1 files changed, 8 insertions, 9 deletions
diff --git a/node_modules/@babel/runtime/helpers/using.js b/node_modules/@babel/runtime/helpers/using.js
index 26225aee..37c79e2c 100644
--- a/node_modules/@babel/runtime/helpers/using.js
+++ b/node_modules/@babel/runtime/helpers/using.js
@@ -1,13 +1,12 @@
-var _typeof = require("./typeof.js")["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.");
+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;
}
module.exports = _using, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file