chakra-core / chakra-core/ChakraCore
JsGetOwnPropertyNames returns an array with a undefined length
Open
- Dominant language
- JavaScript
- Stars
- 9.3k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
when using the JSRT API, a call to `JsGetOwnPropertyNames()` returns an array which length property is undefined. This is different from `Object.getOwnPropertyNames()`, which returns an array with the appropriate array.
Chakracore version
1.11.20
windows x64
see [repository](https://github.com/manxboy/chakra-get-length-bug) for example
when run, the type is reported as undefined and the conversion from number to int fails.
Contributor guide
Assessment
This issue has not been assessed yet.