Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1432a44

Browse files
committed
remove Object.assign polyfill, no longer needed
1 parentf058d1a commit1432a44

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
returnvals;
1010
};
1111
}
12-
if(typeofObject.assign!=='function'){
13-
(function(){
14-
Object.assign=function(target){
15-
'use strict';
16-
if(target===undefined||target===null){
17-
thrownewTypeError('Cannot convert undefined or null to object');
18-
}
19-
varoutput=Object(target);
20-
for(varindex=1;index<arguments.length;index++){
21-
varsource=arguments[index];
22-
if(source!==undefined&&source!==null){
23-
for(varnextKeyinsource){
24-
if(source.hasOwnProperty(nextKey)){
25-
output[nextKey]=source[nextKey];
26-
}
27-
}
28-
}
29-
}
30-
returnoutput;
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(typeofObject.assign!=='function'){
16-
(function(){
17-
Object.assign=function(target){
18-
'use strict';
19-
if(target===undefined||target===null){
20-
thrownewTypeError('Cannot convert undefined or null to object');
21-
}
22-
23-
varoutput=Object(target);
24-
for(varindex=1;index<arguments.length;index++){
25-
varsource=arguments[index];
26-
if(source!==undefined&&source!==null){
27-
for(varnextKeyinsource){
28-
if(source.hasOwnProperty(nextKey)){
29-
output[nextKey]=source[nextKey];
30-
}
31-
}
32-
}
33-
}
34-
returnoutput;
35-
};
36-
})();
37-
}
38-
3914
};

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp