Skip to content

AOT compiling with errors messages #797

Answered by sinclairzx81
maemigh asked this question in Q&A
Discussion options

You must be logged in to vote

@maemigh Hi,

Is it possible to use the AOT code and check for errors? It doesn't look like TypeCompiler.Code() creates an error function.

Not at this stage. Currently the AOT option will generate a Check function that returns a boolean result only. Note that JIT option also only generates the same Check (with the Errors obtained through dynamic introspection (the same as Value.Errors())). The current AOT implementation in TypeBox was mostly written to try and accelerate the Check phase in eval restricted environments, using non-eval techniques like the following....

AOT Dynamic

The following uses ESM and memory URL sourcing to by-pass direct eval code evaluation. This approach depends …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by maemigh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants