Skip to content

Assertion 'context_p->scope_stack_size == PARSER_MAXIMUM_DEPTH_OF_SCOPE_STACK' failed at jerry-core/parser/js/js-parser-expr.c(parser_parse_class):1160 #4892

@eternalsakura

Description

@eternalsakura

JerryScript commit hash

55acdf2

Build platform

Ubuntu 20.04 LTS

Build steps

./tools/build.py --clean --debug --compile-flag=-fsanitize=address \
--compile-flag=-m32 --compile-flag=-fno-omit-frame-pointer \
--compile-flag=-fno-common --compile-flag=-g \
--strip=off --system-allocator=on --logging=on \
--linker-flag=-fuse-ld=gold --error-messages=on --line-info=ON \
--stack-limit=10

poc

function foo(a, i) {
    a[i] = 1;
    return a[i];
}
class MyArray extends class C extends Array {

} {

}
;
o = new MyArray();
print(foo);
print(1, foo(o, 0));
print(1, foo(o, 1));
o.__proto__.__proto__ = new Int32Array(2);
print(undefined, foo(o, 2));
print(undefined, foo(o, 2));

assert log

ICE: Assertion 'context_p->scope_stack_size == PARSER_MAXIMUM_DEPTH_OF_SCOPE_STACK' failed at /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c(parser_parse_class):1160.
Error: ERR_FAILED_INTERNAL_ASSERTION

Metadata

Metadata

Assignees

Labels

bugUndesired behaviour

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions