summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSon Ho2022-01-06 15:32:41 +0100
committerSon Ho2022-01-06 15:32:41 +0100
commit38edb4c01773626b89ff527bf8a0e1b76bd1abc6 (patch)
tree6a2e3384454fde978c05b81ea57576174dc9b3c6
parent973e14973ca857ed0b3fd69fa45901c8ae08820e (diff)
Make a minor modification
Diffstat (limited to '')
-rw-r--r--src/InterpreterStatements.ml4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/InterpreterStatements.ml b/src/InterpreterStatements.ml
index 15bfb6e7..5eee5296 100644
--- a/src/InterpreterStatements.ml
+++ b/src/InterpreterStatements.ml
@@ -549,7 +549,9 @@ let rec eval_statement (config : C.config) (ctx : C.eval_ctx) (st : A.statement)
| Ok ctx -> [ Ok (ctx, Unit) ]
| Error e -> [ Error e ])
| A.Call call -> eval_function_call config ctx call
- | A.Panic -> [ Error Panic ]
+ | A.Panic ->
+ S.synthesize_panic ();
+ [ Error Panic ]
| A.Return -> [ Ok (ctx, Return) ]
| A.Break i -> [ Ok (ctx, Break i) ]
| A.Continue i -> [ Ok (ctx, Continue i) ]