Fix check of run scope bounds in vm_loop.

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
Ruben Ayrapetyan 2015-06-25 20:06:07 +03:00
parent 9b414deb8d
commit 6c6e740c7a

View File

@ -497,7 +497,7 @@ vm_loop (int_data_t *int_data_p, /**< interpreter context */
*/
if (run_scope_p == NULL /* if no run scope set */
|| (target >= run_scope_p->start_oc /* or target is within the current run scope */
&& target < run_scope_p->end_oc))
&& target <= run_scope_p->end_oc))
{
int_data_p->pos = target;