remove stack message limit

This commit is contained in:
Arthur Ozga 2018-01-26 16:11:36 -08:00
parent cae4bc5e83
commit 225dd0a802

View file

@ -11,8 +11,8 @@ namespace ts {
*/
/* @internal */
export function setStackTraceLimit() {
if ((Error as any).stackTraceLimit < 100) { // Also tests that we won't set the property if it doesn't exist.
(Error as any).stackTraceLimit = 100;
if ((Error as any).stackTraceLimit < Infinity) { // Also tests that we won't set the property if it doesn't exist.
(Error as any).stackTraceLimit = Infinity;
}
}