Skip to content

Commit

Permalink
Update helpers to use redefining pattern if needed (related to micros…
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist authored and rbuckton committed Jun 19, 2018
1 parent a921045 commit 4dc67f4
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions tslib.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,28 @@ and limitations under the License.
***************************************************************************** */
/* global Reflect, Promise */

var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
var extendStatics = function(d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};

export function __extends(d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}

export var __assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
export var __assign = function() {
__assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
}
return t;
return __assign.apply(this, arguments);
}

export function __rest(s, e) {
Expand Down

0 comments on commit 4dc67f4

Please sign in to comment.