main
Last change
on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
507 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | export default function _using(o, n, e) {
|
---|
| 2 | if (null == n) return n;
|
---|
| 3 | if (Object(n) !== n) throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");
|
---|
| 4 | if (e) var r = n[Symbol.asyncDispose || Symbol["for"]("Symbol.asyncDispose")];
|
---|
| 5 | if (null == r && (r = n[Symbol.dispose || Symbol["for"]("Symbol.dispose")]), "function" != typeof r) throw new TypeError("Property [Symbol.dispose] is not a function.");
|
---|
| 6 | return o.push({
|
---|
| 7 | v: n,
|
---|
| 8 | d: r,
|
---|
| 9 | a: e
|
---|
| 10 | }), n;
|
---|
| 11 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.