Fix compiletest support for wasm32-unknown-emscripten

This commit is contained in:
Nikita Popov 2018-11-08 17:04:05 +01:00
parent ffdb2bc1c5
commit 6fb701e874
1 changed files with 2 additions and 4 deletions

View File

@ -1870,11 +1870,9 @@ impl<'test> TestCx<'test> {
} else {
self.fatal("no NodeJS binary found (--nodejs)");
}
}
// If this is otherwise wasm , then run tests under nodejs with our
// If this is otherwise wasm, then run tests under nodejs with our
// shim
if self.config.target.contains("wasm32") {
} else if self.config.target.contains("wasm32") {
if let Some(ref p) = self.config.nodejs {
args.push(p.clone());
} else {