Remove the polyfill of Array.from.
This commit is contained in:
parent
40f91f439c
commit
29645b8414
16
game/game.js
16
game/game.js
|
@ -7638,22 +7638,6 @@
|
|||
}
|
||||
});
|
||||
}
|
||||
if(!Array.from){
|
||||
Object.defineProperty(Array, "from", {
|
||||
configurable:true,
|
||||
enumerable:false,
|
||||
writable:true,
|
||||
value:function(args){
|
||||
const list=[];
|
||||
if(args&&args.length){
|
||||
for(let i=0;i<args.length;i++){
|
||||
list.push(args[i]);
|
||||
}
|
||||
}
|
||||
return list;
|
||||
}
|
||||
});
|
||||
}
|
||||
if(!Object.values){
|
||||
Object.defineProperty(Object, 'values', {
|
||||
configurable:true,
|
||||
|
|
Loading…
Reference in New Issue