diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-02-22 12:38:16 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-02-22 12:38:16 -0800 |
commit | 75a6357e2b57a908f955e4cc7b3e9e627524f385 (patch) | |
tree | d62ec1801626632d85875565c6325d22498cb3b5 /src | |
parent | ed567a4f49d3296dcf91bdb966c0deb077dacff7 (diff) | |
download | binaryen-75a6357e2b57a908f955e4cc7b3e9e627524f385.tar.gz binaryen-75a6357e2b57a908f955e4cc7b3e9e627524f385.tar.bz2 binaryen-75a6357e2b57a908f955e4cc7b3e9e627524f385.zip |
document that env.exit support is a hack for torture tests
Diffstat (limited to 'src')
-rw-r--r-- | src/binaryen-shell.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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(); } |