We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c221b0 commit 386de74Copy full SHA for 386de74
jsdom-nodejs-env/src/main/scala/org/scalajs/jsenv/jsdomnodejs/JSDOMNodeJSEnv.scala
@@ -84,10 +84,7 @@ class JSDOMNodeJSEnv(config: JSDOMNodeJSEnv.Config) extends JSEnv {
84
}
85
86
private def codeWithJSDOMContext(input: Input): List[VirtualBinaryFile] = {
87
- val scriptsURIs = scriptFiles(input).map {
88
- case file: FileVirtualFile => file.file.toURI
89
- case file => JSDOMNodeJSEnv.materialize(file)
90
- }
+ val scriptsURIs = scriptFiles(input).map(JSDOMNodeJSEnv.materialize(_))
91
val scriptsURIsAsJSStrings =
92
scriptsURIs.map(uri => '"' + escapeJS(uri.toASCIIString) + '"')
93
val jsDOMCode = {
0 commit comments