Skip to content

Commit 66bbc71

Browse files
committed
Replace deprecated @JsName annotation with @jsglobal
1 parent 8f299be commit 66bbc71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scalac-scoverage-runtime/js/src/main/scala/scalajssupport/RhinoFile.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package scalajssupport
22

33
import scala.scalajs.js
4-
import scala.scalajs.js.annotation.JSName
4+
import scala.scalajs.js.annotation.JSGlobal
55

66
import js.Dynamic.{ global => g, newInstance => jsnew }
77

8-
@JSName("Packages.java.io.File")
8+
@JSGlobal("Packages.java.io.File")
99
@js.native
1010
class NativeRhinoFile(path: String, child: String) extends js.Object {
1111
def this(path: String) = this("", path)

0 commit comments

Comments
 (0)