summaryrefslogtreecommitdiffhomepage
path: root/compiler.c
diff options
context:
space:
mode:
Diffstat (limited to 'compiler.c')
-rw-r--r--compiler.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler.c b/compiler.c
index 15c8f8e..1b0d1c4 100644
--- a/compiler.c
+++ b/compiler.c
@@ -2427,14 +2427,14 @@ uc_compiler_compile_try(uc_compiler *compiler)
!uc_compiler_parse_check(compiler, TK_EOF))
uc_compiler_compile_declaration(compiler);
- /* jump beyond catch branch */
- try_to = chunk->count;
- jmp_off = uc_compiler_emit_jmp(compiler, 0, 0);
-
uc_compiler_parse_consume(compiler, TK_RBRACE);
uc_compiler_leave_scope(compiler);
+ /* jump beyond catch branch */
+ try_to = chunk->count;
+ jmp_off = uc_compiler_emit_jmp(compiler, 0, 0);
+
/* Catch block ---------------------------------------------------------- */
if (try_to > try_from) {