We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52fbd93 commit 13078d4Copy full SHA for 13078d4
ext/node/polyfills/internal/crypto/keys.ts
@@ -4,6 +4,13 @@
4
// TODO(petamoriken): enable prefer-primordials for node polyfills
5
// deno-lint-ignore-file prefer-primordials
6
7
+import { primordials } from "ext:core/mod.js";
8
+
9
+const {
10
+ ObjectDefineProperties,
11
+ SymbolToStringTag,
12
+} = primordials;
13
14
import {
15
op_node_create_private_key,
16
op_node_create_public_key,
@@ -209,6 +216,14 @@ export class KeyObject {
209
216
}
210
217
211
218
219
+ObjectDefineProperties(KeyObject.prototype, {
220
+ [SymbolToStringTag]: {
221
+ __proto__: null,
222
+ configurable: true,
223
+ value: "KeyObject",
224
+ },
225
+});
226
212
227
export interface JsonWebKeyInput {
213
228
key: JsonWebKey;
214
229
format: "jwk";
0 commit comments