File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
main/scala/org/scalajs/jsenv/nodejs
test/scala/org/scalajs/jsenv/nodejs Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff 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 """
Original file line number Diff line number Diff line change @@ -19,6 +19,5 @@ import org.junit.runner.RunWith
1919@ RunWith (classOf [JSEnvSuiteRunner ])
2020class NodeJSSuite extends JSEnvSuite (
2121 JSEnvSuiteConfig (new NodeJSEnv )
22- .withSupportsESModules(false ) // #17
2322 .withExitJSStatement(" process.exit(0);" )
2423)
You can’t perform that action at this time.
0 commit comments