@babel/runtime-corejs2
Version:
babel's modular runtime helpers with core-js@2 polyfilling
14 lines • 717 B
JavaScript
var _Symbol = require("core-js/library/fn/symbol/index.js");
var _Symbol$for = require("core-js/library/fn/symbol/for.js");
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;
}
module.exports = _using, module.exports.__esModule = true, module.exports["default"] = module.exports;