From 75a6357e2b57a908f955e4cc7b3e9e627524f385 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Mon, 22 Feb 2016 12:38:16 -0800 Subject: document that env.exit support is a hack for torture tests --- src/binaryen-shell.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/binaryen-shell.cpp b/src/binaryen-shell.cpp index 866ea2fa4..61cab723c 100644 --- a/src/binaryen-shell.cpp +++ b/src/binaryen-shell.cpp @@ -128,6 +128,7 @@ struct ShellExternalInterface : ModuleInstance::ExternalInterface { } return Literal(); } else if (import->module == ENV && import->base == EXIT) { + // XXX hack for torture tests std::cout << "exit()\n"; throw ExitException(); } -- cgit v1.2.3