jerryscript-project / jerryscript

Ultra-lightweight JavaScript engine for the Internet of Things.
https://jerryscript.net
Apache License 2.0
6.87k stars 666 forks source link

ICE: Assertion 'capability_p != NULL' failed at jerry-core/ecma/builtin-objects/ecma-builtin-async-from-sync-iterator-prototype.c #5098

Open anbu1024 opened 9 months ago

anbu1024 commented 9 months ago

The latest version commit: 05dbbd134c3b9e2482998f267857dd3722001cd7

Build platform: Ubuntu 20.04

Test case:

async function* foo() {
    yield* foo;
    return foo;
}

var i = Symbol.iterator;
foo[i] = foo;

var bar = foo();

bar.next(foo);

build options

python tools/build.py --debug

error msg:

ICE: Assertion 'capability_p != NULL' failed at jerry-core/ecma/builtin-objects/ecma-builtin-async-from-sync-iterator-prototype.c(ecma_builtin_async_from_sync_iterator_prototype_dispatch_routine):317.
Error: JERRY_FATAL_FAILED_ASSERTION
Aborted (core dumped)