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 'ecma_is_lexical_environment (obj_p) || !ecma_op_object_is_fast_array (obj_p)' failed at jerry-core/ecma/base/ecma-helpers.c #5100

Open anbu1024 opened 9 months ago

anbu1024 commented 9 months ago

The latest version commit: 05dbbd134c3b9e2482998f267857dd3722001cd7

Build platform: Ubuntu 20.04

Test case:

class Foo extends Array {
    #x() {
    }
}

var bar = new Foo();
bar[0] = 1;

build options

python tools/build.py --debug

error msg:

ICE: Assertion 'ecma_is_lexical_environment (obj_p) || !ecma_op_object_is_fast_array (obj_p)' failed at jerry-core/ecma/base/ecma-helpers.c(ecma_find_named_property):613.
Error: JERRY_FATAL_FAILED_ASSERTION
Aborted (core dumped)