Skip to content

Commit

Permalink
Update lib/JsonLdDocumentLoader.js use structuredClone over klona.
Browse files Browse the repository at this point in the history
Co-authored-by: Dave Longley <[email protected]>
  • Loading branch information
aljones15 and dlongley authored May 29, 2024
1 parent 8818a4b commit d46fff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/JsonLdDocumentLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class JsonLdDocumentLoader {
if(!_isObject(document)) {
throw new TypeError('The second parameter (document) must be an object.');
}
this.documents.set(url, klona(document));
this.documents.set(url, structuredClone(document));
}

/**
Expand Down

0 comments on commit d46fff4

Please sign in to comment.