REPL: sanitize stack traces

Don't include our compiler's and preloader's internal code, reflection, native
methods etc. Also delete "substring" matching logic from tests
This commit is contained in:
Alexander Udalov
2014-08-13 15:33:18 +04:00
parent 5beefac5bc
commit 844845c6e3
3 changed files with 38 additions and 31 deletions
+7 -1
View File
@@ -1,5 +1,11 @@
>>> throw Exception("hi there")
substring: Exception: hi there
java.lang.Exception: hi there
at Line1.<init>(Unknown Source)
>>> fun foo() = 2
>>> foo()
2
>>> fun bar() = throw AssertionError()
>>> bar()
java.lang.AssertionError
at Line4.bar(Unknown Source)
at Line5.<init>(Unknown Source)