Skip to content

Commit 6fb701e

Browse files
committed
Fix compiletest support for wasm32-unknown-emscripten
1 parent ffdb2bc commit 6fb701e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/tools/compiletest/src/runtest.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1870,11 +1870,9 @@ impl<'test> TestCx<'test> {
18701870
} else {
18711871
self.fatal("no NodeJS binary found (--nodejs)");
18721872
}
1873-
}
1874-
1875-
// If this is otherwise wasm , then run tests under nodejs with our
1873+
// If this is otherwise wasm, then run tests under nodejs with our
18761874
// shim
1877-
if self.config.target.contains("wasm32") {
1875+
} else if self.config.target.contains("wasm32") {
18781876
if let Some(ref p) = self.config.nodejs {
18791877
args.push(p.clone());
18801878
} else {

0 commit comments

Comments
 (0)