Skip to content

Commit

Permalink
Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
qwtel committed Aug 27, 2024
1 parent 550fc95 commit 071dbbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion v8-value-serializer/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@workers/v8-value-serializer",
"version": "0.5.1",
"version": "0.5.2",
"exports": {
".": "./index.ts",
"./stream": "./stream.ts",
Expand Down
4 changes: 2 additions & 2 deletions v8-value-serializer/v8.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function arrayBufferViewTypeToIndex(abView: ArrayBufferView): number {
if (type === '[object Float32Array]') return 7;
if (type === '[object Float64Array]') return 8;
if (type === '[object DataView]') return 9;
// Index 10 is default.
// Index 10 is node:Buffer, not supported here
if (type === '[object BigInt64Array]') return 11;
if (type === '[object BigUint64Array]') return 12;
return -1;
Expand Down Expand Up @@ -63,7 +63,7 @@ class DefaultSerializer extends Serializer {
}

_writeHostObject(abView: ArrayBufferView): void {
let i = 10; // FastBuffer
let i = 1; // Uint8Array
if (!(abView instanceof Uint8Array)) {
i = arrayBufferViewTypeToIndex(abView);
if (i === -1) {
Expand Down

0 comments on commit 071dbbe

Please sign in to comment.