Skip to content

Commit

Permalink
add test for default exn handler in javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
TimWhiting committed Dec 22, 2024
1 parent 8f32c41 commit a7c4292
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/jsgen/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"--target=js -e"
3 changes: 3 additions & 0 deletions test/jsgen/exn.kk
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Issue: https://github.com/koka-lang/koka/issues/625 (make sure default exception handler is inserted)
fun main()
throw("Error")
1 change: 1 addition & 0 deletions test/jsgen/exn.kk.out
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uncaught exception: Error

0 comments on commit a7c4292

Please sign in to comment.