chakra-core / chakra-core/ChakraCore

ChakraCore allows writing to a non-writable, non-configurable property through Annex B 3.3 edge case

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

Description

Test case:

```js
Object.defineProperty(this, 'f', {})
eval('{function f() {}}')
print(Object.getOwnPropertyDescriptor(this, 'f').value)
```

ChakraCore outputs the function, whereas three other engines output `undefined`. ChakraCore ignored the fact that the property was non-writable and non-configurable to get this output.

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.