massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-go / node_modules / tslib / tslib.es6.js
index c60aa609f11ae92ffa7164c100499ca4f53e52b1..0c764b8333f25396a6227a5c3c55e6e1eb0d8432 100644 (file)
@@ -22,6 +22,8 @@ var extendStatics = function(d, b) {
 };\r
 \r
 export function __extends(d, b) {\r
+    if (typeof b !== "function" && b !== null)\r
+        throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\r
     extendStatics(d, b);\r
     function __() { this.constructor = d; }\r
     d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r
@@ -144,19 +146,31 @@ export function __read(o, n) {
     return ar;\r
 }\r
 \r
+/** @deprecated */\r
 export function __spread() {\r
     for (var ar = [], i = 0; i < arguments.length; i++)\r
         ar = ar.concat(__read(arguments[i]));\r
     return ar;\r
 }\r
 \r
+/** @deprecated */\r
 export function __spreadArrays() {\r
     for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r
     for (var r = Array(s), k = 0, i = 0; i < il; i++)\r
         for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r
             r[k] = a[j];\r
     return r;\r
-};\r
+}\r
+\r
+export function __spreadArray(to, from, pack) {\r
+    if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r
+        if (ar || !(i in from)) {\r
+            if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r
+            ar[i] = from[i];\r
+        }\r
+    }\r
+    return to.concat(ar || Array.prototype.slice.call(from));\r
+}\r
 \r
 export function __await(v) {\r
     return this instanceof __await ? (this.v = v, this) : new __await(v);\r
@@ -211,17 +225,15 @@ export function __importDefault(mod) {
     return (mod && mod.__esModule) ? mod : { default: mod };\r
 }\r
 \r
-export function __classPrivateFieldGet(receiver, privateMap) {\r
-    if (!privateMap.has(receiver)) {\r
-        throw new TypeError("attempted to get private field on non-instance");\r
-    }\r
-    return privateMap.get(receiver);\r
+export function __classPrivateFieldGet(receiver, state, kind, f) {\r
+    if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");\r
+    if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");\r
+    return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);\r
 }\r
 \r
-export function __classPrivateFieldSet(receiver, privateMap, value) {\r
-    if (!privateMap.has(receiver)) {\r
-        throw new TypeError("attempted to set private field on non-instance");\r
-    }\r
-    privateMap.set(receiver, value);\r
-    return value;\r
+export function __classPrivateFieldSet(receiver, state, value, kind, f) {\r
+    if (kind === "m") throw new TypeError("Private method is not writable");\r
+    if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");\r
+    if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");\r
+    return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r
 }\r