diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-03-19 12:15:01 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-03-20 12:38:59 -0400 |
commit | 8f334ae56887cc5291be20da8b9288fe7054410e (patch) | |
tree | 1261516ff20ef90bace9d74b9ceea73af79cda3b /libdeno/exceptions.cc | |
parent | 4c831f1eb5e5eae4d56c82c941260f5b18940369 (diff) |
Improve pretty printing of objects
If an object has more than 5 elements, it is printed in abbeviated form
displaying only the keys. This is useful in the REPL when inspecting
large objects like the Deno namespace:
> Deno
{ args, noColor, pid, env, exit, isTTY, execPath, chdir, cwd, File,
open, stdin, stdout, stderr, read, write, seek, close, copy,
toAsyncIterator, SeekMode, Buffer, readAll, mkdirSync, mkdir,
makeTempDirSync, makeTempDir, chmodSync, chmod, removeSync, remove,
renameSync, rename, readFileSync, readFile, readDirSync, readDir,
copyFileSync, copyFile, readlinkSync, readlink, statSync, lstatSync,
stat, lstat, symlinkSync, symlink, writeFileSync, writeFile, ErrorKind,
DenoError, libdeno, permissions, revokePermission, truncateSync,
truncate, connect, dial, listen, metrics, resources, run, Process,
inspect, build, platform, version, Console, stringifyArgs,
DomIterableMixin }
Diffstat (limited to 'libdeno/exceptions.cc')
0 files changed, 0 insertions, 0 deletions