From 6fb701e8743e3ad1882d85347299bbcb94113ffc Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Thu, 8 Nov 2018 17:04:05 +0100 Subject: [PATCH] Fix compiletest support for wasm32-unknown-emscripten --- src/tools/compiletest/src/runtest.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index a80bbd401ab..399f9f577ed 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -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 {