You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
391 B

4 years ago
  1. 'use strict';
  2. var inspect = require('../');
  3. var Buffer = require('safer-buffer').Buffer;
  4. var holes = ['a', 'b'];
  5. holes[4] = 'e';
  6. holes[6] = 'g';
  7. var obj = {
  8. a: 1,
  9. b: [3, 4, undefined, null],
  10. c: undefined,
  11. d: null,
  12. e: {
  13. regex: /^x/i,
  14. buf: Buffer.from('abc'),
  15. holes: holes
  16. },
  17. now: new Date()
  18. };
  19. obj.self = obj;
  20. console.log(inspect(obj));