mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Adding assertion that interpreter doesn't receive non-empty normal ecma completion value.
This commit is contained in:
parent
488ed41c2b
commit
cc513e9f35
@ -92,6 +92,10 @@ run_int_from_pos (struct __int_data *int_data)
|
||||
{
|
||||
const OPCODE *curr = &__program[int_data->pos];
|
||||
completion = __opfuncs[curr->op_idx](*curr, int_data);
|
||||
|
||||
JERRY_ASSERT( !ecma_is_completion_value_normal( completion)
|
||||
|| ecma_is_completion_value_normal_simple_value(completion,
|
||||
ECMA_SIMPLE_VALUE_EMPTY) );
|
||||
} while ( completion.type == ECMA_COMPLETION_TYPE_NORMAL );
|
||||
|
||||
if ( completion.type == ECMA_COMPLETION_TYPE_BREAK )
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user