diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/wasm2asm.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wasm2asm.h b/src/wasm2asm.h index 8555e49ec..ba52b1878 100644 --- a/src/wasm2asm.h +++ b/src/wasm2asm.h @@ -248,10 +248,11 @@ void Wasm2AsmBuilder::addBasics(Ref ast) { void Wasm2AsmBuilder::addImport(Ref ast, Import *import) { Ref theVar = ValueBuilder::makeVar(); ast->push_back(theVar); + Ref module = ValueBuilder::makeName(ENV); // TODO: handle nested module imports ValueBuilder::appendToVar(theVar, fromName(import->name), ValueBuilder::makeDot( - ValueBuilder::makeName(fromName(import->module)), + module, fromName(import->base) ) ); |