We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2297d8c commit bf081e1Copy full SHA for bf081e1
scalac-scoverage-runtime/js/src/main/scala/scalajssupport/File.scala
@@ -69,10 +69,10 @@ object File {
69
70
val jsFile: JsFileObject = if (globalObject.hasOwnProperty("Packages").asInstanceOf[Boolean])
71
RhinoFile
72
- else if (!globalObject.hasOwnProperty("window").asInstanceOf[Boolean])
73
- NodeFile
74
- else
+ else if (globalObject.hasOwnProperty("callPhantom").asInstanceOf[Boolean])
75
PhantomFile
+ else
+ NodeFile
76
// Factorize this
77
78
def pathJoin(path: String, child: String): String =
0 commit comments