Skip to content

Commit 1432a44

Browse files
committed
remove Object.assign polyfill, no longer needed
1 parent f058d1a commit 1432a44

File tree

2 files changed

+0
-47
lines changed

2 files changed

+0
-47
lines changed

lib/services/polyfills.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,6 @@ function loadPolyfills() {
99
return vals;
1010
};
1111
}
12-
if (typeof Object.assign !== 'function') {
13-
(function () {
14-
Object.assign = function (target) {
15-
'use strict';
16-
if (target === undefined || target === null) {
17-
throw new TypeError('Cannot convert undefined or null to object');
18-
}
19-
var output = Object(target);
20-
for (var index = 1; index < arguments.length; index++) {
21-
var source = arguments[index];
22-
if (source !== undefined && source !== null) {
23-
for (var nextKey in source) {
24-
if (source.hasOwnProperty(nextKey)) {
25-
output[nextKey] = source[nextKey];
26-
}
27-
}
28-
}
29-
}
30-
return output;
31-
};
32-
})();
33-
}
3412
}
3513
Object.defineProperty(exports, "__esModule", { value: true });
3614
exports.default = loadPolyfills;

src/services/polyfills.ts

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -11,29 +11,4 @@ export default function loadPolyfills(): void {
1111
};
1212
}
1313

14-
// Object.assign (ES7)
15-
if (typeof Object.assign !== 'function') {
16-
(function() {
17-
Object.assign = function(target) {
18-
'use strict';
19-
if (target === undefined || target === null) {
20-
throw new TypeError('Cannot convert undefined or null to object');
21-
}
22-
23-
var output = Object(target);
24-
for (var index = 1; index < arguments.length; index++) {
25-
var source = arguments[index];
26-
if (source !== undefined && source !== null) {
27-
for (var nextKey in source) {
28-
if (source.hasOwnProperty(nextKey)) {
29-
output[nextKey] = source[nextKey];
30-
}
31-
}
32-
}
33-
}
34-
return output;
35-
};
36-
})();
37-
}
38-
3914
};

0 commit comments

Comments
 (0)