https://github.com/binki/expressiontryfaultinvalidemit
https://github.com/binki/expressiontryfaultinvalidemit
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/binki/expressiontryfaultinvalidemit
- Owner: binki
- License: mit
- Created: 2022-09-14T23:36:19.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-10-10T01:46:44.000Z (over 3 years ago)
- Last Synced: 2025-01-11T02:19:14.797Z (over 1 year ago)
- Language: C#
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
This repository was created as a reproduction for [SO 73724218](https://stackoverflow.com/questions/73724218).
On .netfx, which compiles expressions to CIL and then JITs them, this program produces a `NotSupportedException` from `System.Reflection.Emit.DynamicILGenerator.BeginFaultBlock()`. That is, the program passes `Expression`’s own validation checks, but it fails at the lower layer which, in my opinion, is a bug in the framework.
On netcore, which uses reflection to execute expression trees, this program succeeds.