Skip to content

Commit

Permalink
fix(node/buffer): add isUtf8 util (not implemented)
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Feb 21, 2023
1 parent a004a3b commit 527904b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/runtime/node/buffer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export { Buffer, kMaxLength, INSPECT_MAX_BYTES, SlowBuffer } from "./_buffer";
export const Blob = globalThis.Blob as unknown as typeof buffer.Blob;
export const resolveObjectURL = notImplemented("buffer.resolveObjectURL");
export const transcode = notImplemented("buffer.transcode");
export const isUtf8 = notImplemented("buffer.isUtf8");

export const btoa = global.btoa;
export const atob = globalThis.atob;
Expand All @@ -32,4 +33,5 @@ export default <typeof buffer>{
atob,
kStringMaxLength,
constants,
isUtf8,
};

0 comments on commit 527904b

Please sign in to comment.