diff options
author | Kevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com> | 2018-12-12 02:32:24 -0500 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-12-12 02:32:24 -0500 |
commit | 8502cb0ccba2697d6922b3256655ca445910b7e8 (patch) | |
tree | 5ecb7b68b12a5bbfbcfa8d1fc9847eaca130f989 /js/console_test.ts | |
parent | 585de35b1d472a94fb2652fce1f2cc32077f7814 (diff) |
Avoid Uint8Array.prototype throwing type error in console.log (#1327)
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 eb53ebb76..578fb02b4 100644 --- a/js/console_test.ts +++ b/js/console_test.ts @@ -103,6 +103,7 @@ test(function consoleTestStringifyCircular() { "[AsyncGeneratorFunction: agf]" ); assertEqual(stringify(new Uint8Array([1, 2, 3])), "Uint8Array [ 1, 2, 3 ]"); + assertEqual(stringify(Uint8Array.prototype), "TypedArray []"); assertEqual( stringify({ a: { b: { c: { d: new Set([1]) } } } }), "{ a: { b: { c: { d: [Set] } } } }" |