Skip to content

Commit

Permalink
fix: add Symbol.toStringTag to KeyObject instances (oven-sh#12278)
Browse files Browse the repository at this point in the history
  • Loading branch information
panva authored Jul 1, 2024
1 parent 86fd136 commit 81711fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/js/node/crypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11832,8 +11832,9 @@ class KeyObject {
}
this.$bunNativePtr = key;
}
toString() {
return "[object KeyObject]";

get [Symbol.toStringTag]() {
return "KeyObject"
}

static from(key) {
Expand Down

0 comments on commit 81711fa

Please sign in to comment.