We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent daa52a0 commit 5ea4d40Copy full SHA for 5ea4d40
nodejs-env/src/main/scala/org/scalajs/jsenv/nodejs/NodeJSEnv.scala
@@ -146,7 +146,7 @@ object NodeJSEnv {
146
* `import()` cannot be used from the standard input).
147
*/
148
val importChain = input.foldLeft("Promise.resolve()") { (prev, item) =>
149
- s"$prev.\n then(${execInputExpr(item)})"
+ s"$prev.\n then(() => ${execInputExpr(item)})"
150
}
151
val importerFileContent = {
152
s"""
nodejs-env/src/test/scala/org/scalajs/jsenv/nodejs/NodeJSSuite.scala
@@ -19,6 +19,5 @@ import org.junit.runner.RunWith
19
@RunWith(classOf[JSEnvSuiteRunner])
20
class NodeJSSuite extends JSEnvSuite(
21
JSEnvSuiteConfig(new NodeJSEnv)
22
- .withSupportsESModules(false) // #17
23
.withExitJSStatement("process.exit(0);")
24
)
0 commit comments