• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict';
2
3require('../common');
4const util = require('util');
5
6const err = new Error('foo\nbar');
7
8console.log(util.inspect({ err, nested: { err } }, { compact: true }));
9console.log(util.inspect({ err, nested: { err } }, { compact: false }));
10
11err.foo = 'bar';
12console.log(util.inspect(err, { compact: true, breakLength: 5 }));
13