Skip to content

Commit 07570f1

Browse files
RoboPhreddavidlehn
authored andcommitted
fix(#394): Clone active context to prevent mutation
1 parent 983cd84 commit 07570f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/context.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ api.process = async ({
394394
if(process) {
395395
try {
396396
await api.process({
397-
activeCtx: rval,
397+
activeCtx: rval.clone(),
398398
localCtx: ctx[key]['@context'],
399399
overrideProtected: true,
400400
options,

0 commit comments

Comments
 (0)