chakra-core / chakra-core/ChakraCore
An issue about the Object.freeze()
- Dominant language
- JavaScript
- Stars
- 9.3k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
When I performed a freeze operation on an initialized TypedArray, ChakraCore did not report an error, but other engines, such as SpiderMonkey and JavascriptCore, all reported errors.So I think there may be something wrong here.
**version**
chakra-1_11_22
**command**
```javascript
ChakraCore/out/Debug/ch testcase.js
```
**testcase**
```javascript
var NISLFuzzingFunc = function(){
Object.freeze(new Int8Array(1));
}
NISLFuzzingFunc();
```
**Output**
```javascript
No output.
```
**Expected behavior**
```javascript
TypeError:cannot redefine non-configurable property 0.
```
Contributor : @Haobin-Lee
Contributor guide
Research direction
Start by running the provided testcase.js with ChakraCore/out/Debug/ch and compare its Object.freeze behavior for an initialized Int8Array with the expected TypeError from other engines. Done means ChakraCore reports the non-configurable property error consistently for this case, with a regression test covering it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100