chakra-core / chakra-core/ChakraCore

Wrong realization of TypedArray's toLocaleString()

Open
#5,653 3 comments 0 reactions 0 assignees View on GitHub
Bug ES Spec Conformance Severity: 3
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.