summaryrefslogtreecommitdiff
path: root/node_modules/@babel/runtime/helpers/using.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/@babel/runtime/helpers/using.js')
-rw-r--r--node_modules/@babel/runtime/helpers/using.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/node_modules/@babel/runtime/helpers/using.js b/node_modules/@babel/runtime/helpers/using.js
new file mode 100644
index 00000000..26225aee
--- /dev/null
+++ b/node_modules/@babel/runtime/helpers/using.js
@@ -0,0 +1,13 @@
+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.");
+ return o.push({
+ v: e,
+ d: r,
+ a: n
+ }), e;
+}
+module.exports = _using, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file