mutable closures (let variables)

This commit is contained in:
Dmitry Vasilev
2023-11-17 12:44:12 +08:00
parent 924e59f567
commit 4b32433748
10 changed files with 1272 additions and 157 deletions

View File

@@ -74,6 +74,11 @@ const i = test_initial_state(
{entrypoint: 'test/run.js'},
)
if(!i.parse_result.ok) {
console.error('Parse errors:', i.parse_result.problems)
throw new Error('parse error')
}
assert_equal(i.loading_external_imports_state != null, true)
const external_imports = await load_external_modules(i)
const loaded = COMMANDS.external_imports_loaded(i, i, external_imports)