chakra-core / chakra-core/ChakraCore

OpHelpers returning non-int values lead to Infinite bailouts on some array operations

Open
#5,614 0 comments 0 reactions 0 assignees View on GitHub
Performance Severity: 2
Dominant language
JavaScript
Stars
9.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

```
var index = "0.1";
var ary = [0,1];

for (var i = 0; i < 10000; ++i)
{
// +index calls Op_ConvNumber which will return a double in this case.
// LdElemI will does a type check on the index and bails out if it's not an int, but rejits the exact same code.
ary[+index];
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.