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 {
60
60
61
61
}
62
62
63
+ @ js.native
63
64
trait FSStats extends js.Object {
64
65
def isDirectory (): Boolean = js.native
65
66
}
66
67
68
+ @ js.native
67
69
trait FS extends js.Object {
68
70
def closeSync (fd : Int ): Unit = js.native
69
71
def lstatSync (path : String ): FSStats = js.native
@@ -77,6 +79,7 @@ trait FS extends js.Object {
77
79
def writeFileSync (path : String , data : String , options : js.Dynamic = js.Dynamic .literal()): Unit = js.native
78
80
}
79
81
82
+ @ js.native
80
83
trait NodePath extends js.Object {
81
84
def basename (path : String ): String = js.native
82
85
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
6
6
import js .Dynamic .{ global => g , newInstance => jsnew }
7
7
8
8
@ JSName (" Packages.java.io.File" )
9
+ @ js.native
9
10
class NativeRhinoFile (path : String , child : String ) extends js.Object {
10
11
def this (path : String ) = this (" " , path)
11
12
You can’t perform that action at this time.
0 commit comments