diff options
Diffstat (limited to 'src/wasm/wasm-io.cpp')
-rw-r--r-- | src/wasm/wasm-io.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm/wasm-io.cpp b/src/wasm/wasm-io.cpp index b8d67f4d5..b94fc8470 100644 --- a/src/wasm/wasm-io.cpp +++ b/src/wasm/wasm-io.cpp @@ -88,8 +88,8 @@ bool ModuleReader::isBinaryFile(std::string filename) { void ModuleReader::read(std::string filename, Module& wasm, std::string sourceMapFilename) { - // empty filename means read from stdin - if (!filename.size()) { + // empty filename or "-" means read from stdin + if (!filename.size() || filename == "-") { readStdin(wasm, sourceMapFilename); return; } |