Skip to content

Commit 31d8f5c

Browse files
committed
fix(core): revert Error cause arg — package TS lib is < ES2022 (unbreaks build)
The 2-arg `new Error(msg, { cause })` form needs ES2022 lib; this package targets lower, so tsc failed TS2554 in the Bundle Analysis build. It was a gratuitous fix for a non-CI-gated lint rule on pre-existing code — reverted to the original single-arg throw. The #2661 CEL routing is unchanged.
1 parent 1173964 commit 31d8f5c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/core/src/evaluator/ExpressionEvaluator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export class ExpressionEvaluator {
169169
// Execute with context values
170170
return compiled.fn(...varValues);
171171
} catch (error) {
172-
throw new Error(`Failed to evaluate expression "${expression}": ${(error as Error).message}`, { cause: error });
172+
throw new Error(`Failed to evaluate expression "${expression}": ${(error as Error).message}`);
173173
}
174174
}
175175

0 commit comments

Comments
 (0)