Fix __spreadArray for non-concat-spreadables (#45386)

This commit is contained in:
Ron Buckton
2021-08-09 17:08:07 -07:00
committed by GitHub
parent 5e496d52e1
commit d8e830d132
52 changed files with 307 additions and 307 deletions

View File

@@ -647,7 +647,7 @@ namespace ts {
ar[i] = from[i];
}
}
return to.concat(ar || from);
return to.concat(ar || Array.prototype.slice.call(from));
};`
};