You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
522 B
12 lines
522 B
2 months ago
|
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: n,
|
||
|
d: r,
|
||
|
a: e
|
||
|
}), n;
|
||
|
}
|
||
|
export { _using as default };
|