[JS IR BE] Don't render null messages in Throwable

Set message property to 'undefined' to make Error.prototype.toString
skip it
This commit is contained in:
Svyatoslav Kuzmich
2019-07-03 17:21:37 +03:00
parent 94aebd0101
commit a2625c7bc8
5 changed files with 78 additions and 13 deletions
@@ -2692,6 +2692,11 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
runTest("js/js.translator/testData/box/expression/try/exceptionToString.kt");
}
@TestMetadata("exceptionToString_legacy.kt")
public void testExceptionToString_legacy() throws Exception {
runTest("js/js.translator/testData/box/expression/try/exceptionToString_legacy.kt");
}
@TestMetadata("kt22053.kt")
public void testKt22053() throws Exception {
runTest("js/js.translator/testData/box/expression/try/kt22053.kt");