-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception handler is not invoked when using Perform() #8
Comments
Exceptions are now propagated through saved vm environments (gnue#8). Pop-handler and pop are generated in the right sequence, following NewtonOS compiler. Fix si_set_lex_scope for native functions. Add unit tests for various cases. Add BinEqual function for tests.
Exceptions are now propagated through saved vm environments (gnue#8). Pop-handler and pop are generated in the right sequence, following NewtonOS compiler. Fix si_set_lex_scope for native functions. Add unit tests for various cases. Add BinEqual function for tests.
Exceptions are now propagated through saved vm environments (gnue#8). Pop-handler and pop are generated in the right sequence, following NewtonOS compiler. Fix si_set_lex_scope for native functions. Add unit tests for various cases. Add BinEqual function for tests.
I've tested and this appears to be resolved by @pguyot's latest fixes. Thanks! |
Indeed, this should be closed, and there is a new regression test. I'm sorry I didn't phrase the commit message in a way to get GitHub to close the issue automatically. |
The one thing I didn't pay attention to in my initial testing is that |
Didn't realize you wrote a unit test library in 2012. @morgant @gnue : What do you think about merging NSUnit into NEWT/0? Also, did you try running your library in NTK? I'm in the process of getting NEWT/0 to generate code compatible with the Newton (and therefore similar to or equal to what NTK generates), and did run my NEWT/0 tests in NTK. It required few modifications. Regarding |
@pguyot Thanks for yet another fix! I have to admit that NSUnit is pretty rudimentary and doesn't have all that many assertions. I was just using it to learn NewtonScript and was doing so solely with NEWT/0 (it did lead me to add I'm certainly open to merging NSUnit into NEWT/0, if you and @gnue feel it actually makes sense. |
The following NewtonScript code demonstrates the problem:
When ran under NEWT/0, the output is:
Note: No exception was caught during Perform(x, 'test, [])
Under WallyScript/NewtonScript 1.x:
The text was updated successfully, but these errors were encountered: