main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
595 bytes
|
Rev | Line | |
---|
[d565449] | 1 | 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 | }
|
---|
| 12 | module.exports = _using, module.exports.__esModule = true, module.exports["default"] = module.exports; |
---|
Note:
See
TracBrowser
for help on using the repository browser.