Host-loaded modules are inserted into the VM module registry before their dependencies are walked, but entry modules passed directly to `VM::run()` were not. That made an entry module self-import parse a second Module Record and observe the second copy after evaluation. Register named entry modules in the same registry before dependency loading runs, so self-imports and namespace access go through the original Module Record. Add a test-js helper for running modules directly and cover the self-import pre-evaluation binding state. |
||
|---|---|---|
| .. | ||
| AST | ||
| Bytecode | ||
| Runtime | ||
| CMakeLists.txt | ||
| test-bytecode-cache.cpp | ||
| test-js-ast.py | ||
| test-js-bytecode.py | ||
| test-js.cpp | ||
| test-primitive-string.cpp | ||
| test-value-js.cpp | ||