This commit is contained in:
iriska-gri committed 2023-09-20 09:54:09 +03:00
1 parent 5d4bca6d51
commit 5d65ea1a5e
5968 files changed
+227721 -62

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
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.");
return o.push({
v: e,
d: r,
a: n
}), e;
}