Skip to content

Commit 4194d11

Browse files
committed
Disable Linq.Expression preferInterpretation for bindings
The interpreter is broken, it causes problems in #1742. The bug is reported in dotnet, without any response yet: dotnet/runtime#96385
1 parent cb8e675 commit 4194d11

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Framework/Framework/Binding/IExpressionToDelegateCompiler.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ public DefaultExpressionToDelegateCompiler(DotvvmConfiguration config)
2020
interpret = config.Debug;
2121
}
2222
public Delegate Compile(LambdaExpression expression) =>
23-
interpret ? expression.Compile(preferInterpretation: interpret) :
23+
// the interpreter is broken: https://github.com/dotnet/runtime/issues/96385
24+
// interpret ? expression.Compile(preferInterpretation: interpret) :
2425
expression.Compile();
2526
// TODO: use FastExpressionCompiler
2627
// we can't do that atm since it still has some bugs, when these are fixed we should use that for all bindings

0 commit comments

Comments
 (0)