jerryscript icon indicating copy to clipboard operation
jerryscript copied to clipboard

Aborted(core dumped)

Open Georgezxh opened this issue 2 years ago • 0 comments

JerryScript revision

2.4.0

Build platform

ubuntu20.04

Description

The following code caused an aborted(core dumped) in jerryscript. I guess there may be some problems in the apply() method because jerry can output b.concat(a).length correctly.

Test case

var a = [];
a.length = 2050;
a.fill([]);
var b = []; 
print(b.concat.apply('',a).length);

Output

aborted(core dumped)

Expected behavior

1

Georgezxh avatar Mar 31 '23 07:03 Georgezxh