Skip to content

Commit

Permalink
feat(@angular/cli): use standard stackTraceLimit (#5284)
Browse files Browse the repository at this point in the history
Sometime very long ago we set infinite stack traces and never took them out.

This PR sets infinite stack traces only on dev setups.
  • Loading branch information
filipesilva authored Mar 7, 2017
1 parent 1c2f361 commit 5c9c653
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/bootstrap-local.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ const path = require('path');
const ts = require('typescript');


Error.stackTraceLimit = Infinity;

global.angularCliIsLocal = true;
global.angularCliPackages = require('./packages');

Expand Down
1 change: 0 additions & 1 deletion packages/@angular/cli/lib/cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const UI = require('../../ember-cli/lib/ui');
const Watcher = require('../../ember-cli/lib/models/watcher');
const path = require('path');

Error.stackTraceLimit = Infinity;

module.exports = function(options) {

Expand Down

0 comments on commit 5c9c653

Please sign in to comment.