File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -91,6 +91,8 @@ function unpack(
9191 return hydrated [ idx ] = set ;
9292 }
9393 case "Uint8Array" :
94+ // TODO(iuioiua): use `Uint8Array.prototype.fromBase64()` once
95+ // available (https://github.com/denoland/deno/issues/25051)
9496 return hydrated [ idx ] = decodeBase64 ( current [ 1 ] ) ;
9597 }
9698 } else {
Original file line number Diff line number Diff line change @@ -110,6 +110,8 @@ function serializeInner(
110110 } else if ( value instanceof RegExp ) {
111111 str += `["RegExp",${ JSON . stringify ( value . source ) } , "${ value . flags } "]` ;
112112 } else if ( value instanceof Uint8Array ) {
113+ // TODO(iuioiua): use `Uint8Array.prototype.toBase64()` once available
114+ // (https://github.com/denoland/deno/issues/25051)
113115 str += `["Uint8Array","${ encodeBase64 ( value ) } "]` ;
114116 } else if ( value instanceof Set ) {
115117 const items = new Array ( value . size ) ;
You can’t perform that action at this time.
0 commit comments