chakra-core / chakra-core/ChakraCore
Wrong realization of TypedArray's toLocaleString()
- Dominant language
- JavaScript
- Stars
- 9.3k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
Executing following code in ch 1.10 :
```
Uint8Array.prototype.toLocaleString.call(0)
```
The output is ""
However, in [specific](https://www.ecma-international.org/ecma-262/9.0/index.html#sec-%typedarray%.prototype.tolocalestring) :
"ValidateTypedArray is applied to the this value prior to evaluating the algorithm. "
So, a TypeError should be thrown.
BT group
2018.08.29
Contributor guide
Research direction
Start with the reported Uint8Array.prototype.toLocaleString.call(0) reproduction in the issue and compare its behavior with the linked ECMAScript TypedArray toLocaleString specification. Done means the invalid this value produces a TypeError rather than an empty string.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 38/100