### 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
```sh
var a = [];
a.length = 2050;
a.fill([]);
var b = []; 
print(b.concat.apply('',a).length);
```

### Output
aborted(core dumped)

### Expected behavior
1

Aborted(core dumped)
This is a GitHub Issue
repo:jerryscript
owner:jerryscript-project
Title : Aborted(core dumped)
Issue date:

--- start body ---
### 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
```sh
var a = [];
a.length = 2050;
a.fill([]);
var b = []; 
print(b.concat.apply('',a).length);
```

### Output
aborted(core dumped)

### Expected behavior
1

--- end body ---
