File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
scalac-scoverage-runtime/js/src/main/scala/scalajssupport Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -60,10 +60,12 @@ class NodeFile(path: String) extends JsFile {
6060
6161}
6262
63+ @ js.native
6364trait FSStats extends js.Object {
6465 def isDirectory (): Boolean = js.native
6566}
6667
68+ @ js.native
6769trait FS extends js.Object {
6870 def closeSync (fd : Int ): Unit = js.native
6971 def lstatSync (path : String ): FSStats = js.native
@@ -77,6 +79,7 @@ trait FS extends js.Object {
7779 def writeFileSync (path : String , data : String , options : js.Dynamic = js.Dynamic .literal()): Unit = js.native
7880}
7981
82+ @ js.native
8083trait NodePath extends js.Object {
8184 def basename (path : String ): String = js.native
8285 def join (paths : String * ): String = js.native
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import scala.scalajs.js.annotation.JSName
66import js .Dynamic .{ global => g , newInstance => jsnew }
77
88@ JSName (" Packages.java.io.File" )
9+ @ js.native
910class NativeRhinoFile (path : String , child : String ) extends js.Object {
1011 def this (path : String ) = this (" " , path)
1112
You can’t perform that action at this time.
0 commit comments