
jerryScript version 3.0.0:
commit 05dbbd134c3b9e2482998f267857dd3722001cd7

Build platform:
Ubuntu 20.04

Build cmd:
```
python tools/build.py --debug --profile=es.next --lto=off --compile-flag=-D_POSIX_C_SOURCE=200809 --compile-flag=-Wno-strict-prototypes --stack-limit=15
```

Test case
```js
function foo() {
    return 0;
}

var obj = {};

function bar() {
    function test() {
        BigInt64Array.next = foo;
        return BigInt64Array;
    }
    return test;
}

function baz(arg) {
    return arg;
}

Object.defineProperty(obj, Symbol.iterator, { configurable: true, enumerable: true, get: bar, set: baz });

async function* trigger() {
    yield* obj;
    return obj;
}

trigger(foo, obj, Symbol, bar)["next"]();
```

Error message:
```
ICE: Assertion 'ecma_is_value_object (iter_result)' failed at jerry-core/ecma/operations/ecma-iterator-object.c(ecma_op_iterator_complete):411.
Error: JERRY_FATAL_FAILED_ASSERTION
Aborted (core dumped)
```

Assertion 'ecma_is_value_object (iter_result)' failed
This is a GitHub Issue
repo:jerryscript
owner:jerryscript-project
Title : Assertion 'ecma_is_value_object (iter_result)' failed
Issue date:

--- start body ---

jerryScript version 3.0.0:
commit 05dbbd134c3b9e2482998f267857dd3722001cd7

Build platform:
Ubuntu 20.04

Build cmd:
```
python tools/build.py --debug --profile=es.next --lto=off --compile-flag=-D_POSIX_C_SOURCE=200809 --compile-flag=-Wno-strict-prototypes --stack-limit=15
```

Test case
```js
function foo() {
    return 0;
}

var obj = {};

function bar() {
    function test() {
        BigInt64Array.next = foo;
        return BigInt64Array;
    }
    return test;
}

function baz(arg) {
    return arg;
}

Object.defineProperty(obj, Symbol.iterator, { configurable: true, enumerable: true, get: bar, set: baz });

async function* trigger() {
    yield* obj;
    return obj;
}

trigger(foo, obj, Symbol, bar)["next"]();
```

Error message:
```
ICE: Assertion 'ecma_is_value_object (iter_result)' failed at jerry-core/ecma/operations/ecma-iterator-object.c(ecma_op_iterator_complete):411.
Error: JERRY_FATAL_FAILED_ASSERTION
Aborted (core dumped)
```

--- end body ---

An assertion failure in JerryScript v3.0.0 indicates a potential vulnerability related to the handling of iterators and asynchronous generators. The error occurs when the iterator's result is expected to be an object but fails the assertion check, leading to a crash. This could be exploited to cause denial of service by triggering the assertion failure through crafted JavaScript code.