diff options
author | kyraNET <kyradiscord@gmail.com> | 2018-12-01 01:59:41 +0100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-11-30 22:37:26 -0800 |
commit | 7c6479e28fc251d1c0c0aa16f06dbe56fba3afc1 (patch) | |
tree | 6c39e3ed1aa7362cdc14d43432046358801814cf /js/console.ts | |
parent | a05d9aaead49aa5250ce76f3c97e9d51c7bbde19 (diff) |
feat: Support for bigints in console
Diffstat (limited to 'js/console.ts')
-rw-r--r-- | js/console.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/js/console.ts b/js/console.ts index 6e0b2e7a6..ccfcf007b 100644 --- a/js/console.ts +++ b/js/console.ts @@ -105,6 +105,8 @@ function stringify( case "undefined": case "symbol": return String(value); + case "bigint": + return `${value}n`; case "function": return createFunctionString(value as Function, ctx); case "object": |