File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed
sjs-compiler-tests/test/scala/dotty/tools/dotc Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,10 @@ object ScalaJSLink:
1717 Semantics .Defaults
1818 .withAsInstanceOfs(CheckedBehavior .Compliant )
1919 .withArrayIndexOutOfBounds(CheckedBehavior .Compliant )
20+ .withArrayStores(CheckedBehavior .Compliant )
21+ .withNegativeArraySizes(CheckedBehavior .Compliant )
22+ .withNullPointers(CheckedBehavior .Compliant )
23+ .withStringIndexOutOfBounds(CheckedBehavior .Compliant )
2024 .withModuleInit(CheckedBehavior .Compliant )
2125 end compliantSemantics
2226
Original file line number Diff line number Diff line change 1- // scalajs: --skip
1+ // scalajs: --compliant-semantics
22
33/*
44 * Try exception handling and finally blocks.
Original file line number Diff line number Diff line change 1- // scalajs: --skip
1+ // scalajs: --compliant-semantics
22
33object Test extends App {
44
@@ -12,9 +12,12 @@ object Test extends App {
1212 try { println(test8) } catch { case _ : Throwable => println(" OK" ) }
1313 println(test9)
1414 println(test10)
15- println (test11)
15+ portablePrintln (test11)
1616 println(test12)
1717
18+ def portablePrintln (x : Any ): Unit =
19+ println(if (x == ()) " ()" else x)
20+
1821 def test1 = {
1922 var x = 1
2023 try {
You can’t perform that action at this time.
0 commit comments