Skip to content

Commit 6c6e740

Browse files
Fix check of run scope bounds in vm_loop.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
1 parent 9b414de commit 6c6e740

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jerry-core/vm/vm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ vm_loop (int_data_t *int_data_p, /**< interpreter context */
497497
*/
498498
if (run_scope_p == NULL /* if no run scope set */
499499
|| (target >= run_scope_p->start_oc /* or target is within the current run scope */
500-
&& target < run_scope_p->end_oc))
500+
&& target <= run_scope_p->end_oc))
501501
{
502502
int_data_p->pos = target;
503503

0 commit comments

Comments
 (0)