Skip to content

Commit

Permalink
bugfix: scope for lambda #deploy_branch
Browse files Browse the repository at this point in the history
  • Loading branch information
lostfields committed Apr 26, 2024
1 parent 95a4e8b commit 24d2fda
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/linq/peg/reducervisitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,9 @@ export class ReducerVisitor extends ExpressionVisitor {
if(isRecord(scope))
Object.assign(newScope, { [scopeName]: scope })
}
else {
Object.assign(newScope, scope ?? {})
}

let result = this.evaluate((<ILambdaExpression>expression).expression, newScope, Object.assign({}, global, newScope))

Expand Down

0 comments on commit 24d2fda

Please sign in to comment.