diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-01-08 15:06:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-08 15:06:04 +0100 |
commit | cbdf9c50095b86e72a8e0e715a02f6eb327f7c53 (patch) | |
tree | e663acae0cbb3410090b2ac087a28ce57987a606 /cli/ops/compiler.rs | |
parent | 8466460311ce3522d598def7155144b082b2b9ad (diff) |
refactor: module loading in EsIsolate (#3615)
* refactored RecursiveLoad - it was renamed to RecursiveModuleLoad, it does not take ownership of isolate anymore - a struct implementing Stream that yields SourceCodeInfo
* untangled module loading logic between RecursiveLoad and isolate - that logic is encapsulated in EsIsolate and RecursiveModuleLoad, where isolate just consumes modules as they become available - does not require to pass Arc<Mutex<Isolate>> around anymore
* removed EsIsolate.mods_ in favor of Modules and moved them inside EsIsolate
* EsIsolate now requires "loader" argument during construction - struct that implements Loader trait
* rewrite first methods on isolate as async
Diffstat (limited to 'cli/ops/compiler.rs')
0 files changed, 0 insertions, 0 deletions