From aa3adeff8a9052e82db4353cd7d77e4da64e9a9d Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Mon, 7 Dec 2015 15:36:06 -0800 Subject: assume flattened imports in wasm2asm output --- src/wasm2asm.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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) ) ); -- cgit v1.2.3