Merge pull request #3778 from Microsoft/noPushApply

Don't call push.apply, it can stack overflow with large arrays.
This commit is contained in:
CyrusNajmabadi committed 2015-07-08 11:25:48 -07:00
commit aaf0f78553
4 files changed
+18 -18

No files matched your search

+1 -1
View File
@@ -3305,7 +3305,7 @@ namespace ts {
let declarations: Declaration[] = [];
for (let prop of props) {
if (prop.declarations) {
declarations.push.apply(declarations, prop.declarations);
addRange(declarations, prop.declarations);
}
propTypes.push(getTypeOfSymbol(prop));
}