Add Engine::compile_to_self_contained.
This commit is contained in:
@@ -11,6 +11,11 @@ Breaking changes
|
||||
* `ParseErrorType::WrongFnDefinition` is renamed `FnWrongDefinition`.
|
||||
* Redefining an existing function within the same script now throws a new `ParseErrorType::FnDuplicatedDefinition`. This is to prevent accidental overwriting an earlier function definition.
|
||||
|
||||
New features
|
||||
------------
|
||||
|
||||
* `Engine::compile_to_self_contained` compiles a script into an `AST` and _eagerly_ resolves all `import` statements with string literal paths. The resolved modules are directly embedded into the `AST`. When the `AST` is later evaluated, `import` statements directly yield the pre-resolved modules without going through the resolution process once again.
|
||||
|
||||
Enhancements
|
||||
------------
|
||||
|
||||
|
Reference in New Issue
Block a user