chakra-core / chakra-core/ChakraCore
TypedArray length incorrectly reported in JITed code
Open
Bug
Severity: 2
- Dominant language
- JavaScript
- Stars
- 9.3k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
```javascript
function f() {
let ta = new Uint8Array(5);
Object.defineProperty(ta, 'length', { value: 100 });
return ta.length;
}
print(f());
print(f());
```
Run with `ch -mic:1 -off:simplejit`
Prints
```
100
5
```
Should be 100 always.
@Penguinwizzard @boingoing
Contributor guide
Assessment
This issue has not been assessed yet.