summaryrefslogtreecommitdiff
path: root/examples/scala-js/test-suite/src/test/scala/scala/scalajs/testsuite/utils/JSUtils.scala
diff options
context:
space:
mode:
Diffstat (limited to 'examples/scala-js/test-suite/src/test/scala/scala/scalajs/testsuite/utils/JSUtils.scala')
-rw-r--r--examples/scala-js/test-suite/src/test/scala/scala/scalajs/testsuite/utils/JSUtils.scala26
1 files changed, 0 insertions, 26 deletions
diff --git a/examples/scala-js/test-suite/src/test/scala/scala/scalajs/testsuite/utils/JSUtils.scala b/examples/scala-js/test-suite/src/test/scala/scala/scalajs/testsuite/utils/JSUtils.scala
deleted file mode 100644
index 4b2ac62..0000000
--- a/examples/scala-js/test-suite/src/test/scala/scala/scalajs/testsuite/utils/JSUtils.scala
+++ /dev/null
@@ -1,26 +0,0 @@
-package scala.scalajs.testsuite.utils
-
-import scala.scalajs.js
-import js.annotation.JSExport
-
-@JSExport("JSUtils")
-object JSUtils {
- /* We use java.lang.Character explicitly, because this class is used by
- * tests that check that Chars are actually boxed by the compiler.
- * If we rely on the compiler doing the job in here, we might have false
- * positives just because the value was never boxed, and never unboxed.
- */
-
- @JSExport
- def isChar(c: Any): Boolean = c.isInstanceOf[java.lang.Character]
-
- @JSExport
- def stringToChar(s: String): java.lang.Character = {
- assert(s.length == 1, "makeChar() requires a string of length 1")
- new java.lang.Character(s.charAt(0))
- }
-
- @JSExport
- def charToString(c: Any): String =
- c.asInstanceOf[java.lang.Character].toString()
-}