source: node_modules/@babel/runtime-corejs3/helpers/esm/using.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 823 bytes
Line 
1import _Symbol$asyncDispose from "core-js-pure/features/symbol/async-dispose.js";
2import _Symbol$for from "core-js-pure/features/symbol/for.js";
3import _Symbol$dispose from "core-js-pure/features/symbol/dispose.js";
4import _pushInstanceProperty from "core-js-pure/features/instance/push.js";
5export default function _using(o, n, e) {
6 if (null == n) return n;
7 if (Object(n) !== n) throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");
8 if (e) var r = n[_Symbol$asyncDispose || _Symbol$for("Symbol.asyncDispose")];
9 if (null == r && (r = n[_Symbol$dispose || _Symbol$for("Symbol.dispose")]), "function" != typeof r) throw new TypeError("Property [Symbol.dispose] is not a function.");
10 return _pushInstanceProperty(o).call(o, {
11 v: n,
12 d: r,
13 a: e
14 }), n;
15}
Note: See TracBrowser for help on using the repository browser.