chakra-core / chakra-core/ChakraCore

JsGetOwnPropertyNames returns an array with a undefined length

Open
#6,481 1 comment 0 reactions 0 assignees View on GitHub
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

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.