Skip to content

Commit e831dcc

Browse files
committed
Reduce use of structuredClone.
1 parent 0ba960c commit e831dcc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vc-generator/contexts.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ addContexts({contexts: credentialsContexts});
2222
//which replaces the original jsonld context in the contextMap
2323
const {
2424
id: v1ContextUrl,
25-
} = structuredClone(namedCredentialsContexts.get('v1'));
25+
} = namedCredentialsContexts.get('v1');
2626
const {
2727
id: v2ContextUrl,
28-
context: v2Context
29-
} = structuredClone(namedCredentialsContexts.get('v2'));
28+
} = namedCredentialsContexts.get('v2');
29+
const v2Context = structuredClone(namedCredentialsContexts.get('v2').context);
3030
copyTerm({
3131
context: v2Context,
3232
oldTerm: 'DataIntegrityProof',

0 commit comments

Comments
 (0)