Commit 3179d446 authored by Dan Melnic's avatar Dan Melnic Committed by Facebook Github Bot

Lua exception handling test

Summary: Lua exception handling test - start with the failing test first - code from D5431445

Reviewed By: yfeldblum

Differential Revision: D5432254

fbshipit-source-id: 87f5934f28ac6ef7b55314acb3c150b9ccf6c799
parent 5d055a09
......@@ -88,7 +88,8 @@ struct Initializer {
// exceptions.
// In the rethrow case, we've already popped the exception off the
// caught stack, so we don't do anything here.
if (top->handlerCount == 1) {
// For Lua interop, we see the handlerCount = 0
if ((top->handlerCount == 1) || (top->handlerCount == 0)) {
if (!caughtExceptions.pop()) {
activeExceptions.clear();
invalid = true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment