chakra-core / chakra-core/ChakraCore

chakra Inherit problem

Open
#6,880 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

###### Version

chakra-1.11.24.0, 1.13.0.0-beta

###### Test case

```js
var obj = {
hi() {
super[1] = 'hello';
}
};
obj.hi();

print(JSON.stringify(obj))

```

###### Execution steps

.ch Testcase.js

###### Output
```
{}
```

###### Expected result
{"1":"hello"}


###### Description

The correct output of the test case should be `{"1":"hello"}` while chakra yields `{}` . I think it might be an issue of chakra.

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.