Skip to content

Commit 6e844f2

Browse files
committed
Fix #17: Fail run in NodeJSEnv if ESModule fails
1 parent fe5a47f commit 6e844f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nodejs-env/src/main/scala/org/scalajs/jsenv/nodejs/NodeJSEnv.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ object NodeJSEnv {
146146
* `import()` cannot be used from the standard input).
147147
*/
148148
val importChain = input.foldLeft("Promise.resolve()") { (prev, item) =>
149-
s"$prev.\n then(${execInputExpr(item)})"
149+
s"$prev.\n then(() => ${execInputExpr(item)})"
150150
}
151151
val importerFileContent = {
152152
s"""

0 commit comments

Comments
 (0)