JS: move expressions test to box tests
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package foo
|
||||
|
||||
fun box(): String {
|
||||
|
||||
var s: String = ""
|
||||
|
||||
try {
|
||||
throw Exception()
|
||||
} catch (e: Throwable) {
|
||||
s = "Throwable"
|
||||
}
|
||||
assertEquals("Throwable", s)
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user