[Webkit-unassigned] [Bug 185208] New: JSCore does not support "null" as a [Symbol.iterator] property of a typedArray
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed May 2 10:53:08 PDT 2018
https://bugs.webkit.org/show_bug.cgi?id=185208
Bug ID: 185208
Summary: JSCore does not support "null" as a [Symbol.iterator]
property of a typedArray
Product: WebKit
Version: Safari 11
Hardware: PC
OS: Linux
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mam7 at cin.ufpe.br
Hi there,
there is an inconsistency when iterator value of a typedArray is "null".
Tag: 606.1.9.4
OS: Ubuntu 16.04 x86_64
According to GetMethod (object, @@iterator) ES6 specification (https://www.ecma-international.org/ecma-262/8.0/index.html#sec-typedarray-object), if the iterator value is either "undefined" or "null", the method should return "undefined", but JSCore does not support this property as "null".
Steps to reproduce:
let typedArray = new Int8Array(
{
[Symbol.iterator]: null
}
)
Actual results:
Exception: TypeError: Type error
Expected results:
Pass without failures
Other JavaScript engines such as V8, SpiderMonkey and Chakra works as expected.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180502/6e05e9d0/attachment.html>
More information about the webkit-unassigned
mailing list