From 3e627d817e10b7163415b8cd7c15a5dc0a977c89 Mon Sep 17 00:00:00 2001 From: Tobias Schlatter Date: Wed, 11 Mar 2020 15:18:03 +0100 Subject: [PATCH] Fix #29: Actually create a source map if it is requested --- scripts/test-cli.sh | 3 ++- src/main/scala/org/scalajs/cli/Scalajsld.scala | 16 ++++++++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/scripts/test-cli.sh b/scripts/test-cli.sh index c824fb1..0fcd920 100755 --- a/scripts/test-cli.sh +++ b/scripts/test-cli.sh @@ -48,8 +48,9 @@ test -s out || fail "scalajsp bin/Foo$.sjsir: empty output" scalajsp bin/Foo\$A.sjsir > out test -s out || fail "scalajsp bin/Foo\$A.sjsir: empty output" -scalajsld -o test.js -mm Foo.main bin +scalajsld -s -o test.js -mm Foo.main bin test -s test.js || fail "scalajsld: empty output" +test -s test.js.map || fail "scalajsld: empty source map" node test.js > got.run cat > want.run <