Skip to content

Commit

Permalink
Check for Buffer presence
Browse files Browse the repository at this point in the history
  • Loading branch information
RReverser authored Jan 6, 2023
1 parent dabe062 commit 67dfc49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime/src/Handle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class Handle<S> {
}

public isBuffer (): boolean {
return !this.isEmpty() && (this.value instanceof Buffer)
return !this.isEmpty() && typeof Buffer === 'function' && (this.value instanceof Buffer)
}

public isDataView (): boolean {
Expand Down

0 comments on commit 67dfc49

Please sign in to comment.