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
538 B
12 lines
538 B
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;
|
|
} |