Browse Source

Fix bound coroutine resume assert

pull/1157/head
Sami Vaarala 8 years ago
parent
commit
8544c5f0c3
  1. 4
      src-input/duk_js_executor.c

4
src-input/duk_js_executor.c

@ -1117,10 +1117,6 @@ duk_small_uint_t duk__handle_longjmp(duk_hthread *thr,
(resumee->callstack + resumee->callstack_top - 2)->idx_retval >= 0); /* idx_retval unsigned */ (resumee->callstack + resumee->callstack_top - 2)->idx_retval >= 0); /* idx_retval unsigned */
DUK_ASSERT(resumee->state != DUK_HTHREAD_STATE_INACTIVE || DUK_ASSERT(resumee->state != DUK_HTHREAD_STATE_INACTIVE ||
resumee->callstack_top == 0); /* INACTIVE: no activation, single function value on valstack */ resumee->callstack_top == 0); /* INACTIVE: no activation, single function value on valstack */
DUK_ASSERT(resumee->state != DUK_HTHREAD_STATE_INACTIVE ||
(resumee->valstack_top == resumee->valstack + 1 &&
DUK_TVAL_IS_OBJECT(resumee->valstack_top - 1) &&
DUK_HOBJECT_IS_COMPFUNC(DUK_TVAL_GET_OBJECT(resumee->valstack_top - 1))));
if (thr->heap->lj.iserror) { if (thr->heap->lj.iserror) {
/* /*

Loading…
Cancel
Save