Skip to content

Commit 6cc3839

Browse files
author
Daniel Balla
committed
Fix an issue while debugging with static snapshots
Co-authored-by: Robert Fancsik frobert@inf.u-szeged.hu JerryScript-DCO-1.0-Signed-off-by: Daniel Balla dballa@inf.u-szeged.hu
1 parent 22b0851 commit 6cc3839

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jerry-core/vm/vm.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3256,7 +3256,8 @@ vm_loop (vm_frame_ctx_t *frame_ctx_p) /**< frame context */
32563256

32573257
if ((JERRY_CONTEXT (debugger_flags) & JERRY_DEBUGGER_CONNECTED)
32583258
&& !(frame_ctx_p->bytecode_header_p->status_flags & CBC_CODE_FLAGS_DEBUGGER_IGNORE)
3259-
&& !(JERRY_CONTEXT (debugger_flags) & dont_stop))
3259+
&& !(JERRY_CONTEXT (debugger_flags) & dont_stop)
3260+
&& !(frame_ctx_p->bytecode_header_p->status_flags & CBC_CODE_FLAGS_STATIC_FUNCTION))
32603261
{
32613262
/* Save the error to a local value, because the engine enters breakpoint mode after,
32623263
therefore an evaluation error, or user-created error throw would overwrite it. */

0 commit comments

Comments
 (0)