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_test.ts | |
parent | a05d9aaead49aa5250ce76f3c97e9d51c7bbde19 (diff) |
feat: Support for bigints in console
Diffstat (limited to 'js/console_test.ts')
-rw-r--r-- | js/console_test.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/js/console_test.ts b/js/console_test.ts index 3a50b08d4..a46edf29e 100644 --- a/js/console_test.ts +++ b/js/console_test.ts @@ -70,6 +70,7 @@ test(function consoleTestStringifyCircular() { const nestedObjExpected = `{ num: 1, bool: true, str: "a", method: [Function: method], asyncMethod: [AsyncFunction: asyncMethod], generatorMethod: [GeneratorFunction: generatorMethod], un: undefined, nu: null, arrowFunc: [Function: arrowFunc], extendedClass: Extended { a: 1, b: 2 }, nFunc: [Function], extendedCstr: [Function: Extended], o: { num: 2, bool: false, str: "b", method: [Function: method], un: undefined, nu: null, nested: [Circular], emptyObj: [object], arr: [object], baseClass: [object] } }`; assertEqual(stringify(1), "1"); + assertEqual(stringify(1n), "1n"); assertEqual(stringify("s"), "s"); assertEqual(stringify(false), "false"); assertEqual(stringify(Symbol(1)), "Symbol(1)"); |