aboutsummaryrefslogtreecommitdiff
path: root/jerry-core/vm/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'jerry-core/vm/vm.c')
-rw-r--r--jerry-core/vm/vm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/jerry-core/vm/vm.c b/jerry-core/vm/vm.c
index 7831fdfd..b8567bd4 100644
--- a/jerry-core/vm/vm.c
+++ b/jerry-core/vm/vm.c
@@ -3315,6 +3315,9 @@ error:
}
ecma_object_t *catch_env_p = ecma_create_decl_lex_env (frame_ctx_p->lex_env_p);
+#ifdef JERRY_DEBUGGER
+ catch_env_p->type_flags_refs |= (uint16_t) ECMA_OBJECT_FLAG_NON_CLOSURE;
+#endif /* JERRY_DEBUGGER */
ecma_string_t *catch_name_p = ecma_get_string_from_value (literal_start_p[literal_index]);
ecma_op_create_mutable_binding (catch_env_p, catch_name_p, false);