Skip to content

Commit eaede36

Browse files
committed
fix: Compilation error with nested request's variable mutation receiver
1 parent 98ca533 commit eaede36

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/runner/nested-request.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,10 @@ function runNestedRequest ({ executionId, isExecutionSkipped }) {
123123
// are anyway synced as the sandbox's common scope is shared across runs
124124
if (result) {
125125
SYNCABLE_CONTEXT_VARIABLE_SCOPES.forEach(function (type) {
126-
(variableMutationsFromThisExecution[type] ||= [])
127-
.push(result[type].mutations);
126+
variableMutationsFromThisExecution[type] = [
127+
...(variableMutationsFromThisExecution[type] || []),
128+
result[type].mutations
129+
];
128130
});
129131
}
130132
},

0 commit comments

Comments
 (0)