chakra-core / chakra-core/ChakraCore
For loop leads to a crash
Open
- Dominant language
- JavaScript
- Stars
- 9.3k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
###### Version
chakra-1.11.24.0
###### Test case
```js
var x = 'a';
//large than 32 cause a crash
for (var i = 0; i < 32; i++) {
try { x = x + x; } catch (e) { }
}
print(x.length)
```
###### Execution steps
.ch Testcase.js
###### Output
```
Aborted (core dumped)
```
###### Description
This testcase caused a crash.
When we change the number of times in the for-loop to less than `32`, it will not cause a crash. It seems to be caused by the JIT Compiler.
Contributor guide
Assessment
This issue has not been assessed yet.