Add runtime_error support, for throwing a normal std::exception. Also, move bootstrap for Dynamic_Object into its proper place.
This commit is contained in:
6
unittests/runtime_error.chai
Normal file
6
unittests/runtime_error.chai
Normal file
@@ -0,0 +1,6 @@
|
||||
try {
|
||||
throw(runtime_error("error"))
|
||||
}
|
||||
catch(e) {
|
||||
print(e.what())
|
||||
}
|
1
unittests/runtime_error.txt
Normal file
1
unittests/runtime_error.txt
Normal file
@@ -0,0 +1 @@
|
||||
error
|
Reference in New Issue
Block a user