chakra-core / chakra-core/ChakraCore

Wrong realization of TypedArray's toLocaleString()

未关闭
#5,653 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Bug ES Spec Conformance Severity: 3
主要语言
JavaScript
星标
9.3k
派生
1.2k
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

打开贡献指南

调研方向

从 issue 中报告的 Uint8Array.prototype.toLocaleString.call(0) 复现开始,并将其行为与链接的 ECMAScript TypedArray toLocaleString 规范进行比较。当无效的 this 值产生 TypeError 而不是空字符串时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript
领域
compilers
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
描述清楚
新手友好度
38/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。