mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-18 16:34:36 -05:00
Don't call push.apply, it can stack overflow with large arrays.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user