RESOLVED DUPLICATE of bug 212771 185208
JSCore does not support "null" as a [Symbol.iterator] property of a typedArray
https://bugs.webkit.org/show_bug.cgi?id=185208
Summary JSCore does not support "null" as a [Symbol.iterator] property of a typedArray
Mariana Moura
Reported 2018-05-02 10:53:08 PDT
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.
Attachments
isol2
Comment 1 2018-08-21 09:22:59 PDT
cinfuzz
Radar WebKit Bug Importer
Comment 2 2019-02-21 02:57:32 PST
Alexey Shvayka
Comment 3 2020-06-07 05:35:16 PDT
(In reply to Mariana Moura from comment #0) > 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". r262567 fixed GetMethod with iterators, including %TypedArray% constructor case. test262 coverage: https://github.com/tc39/test262/pull/2639. *** This bug has been marked as a duplicate of bug 212771 ***
Note You need to log in before you can comment on or make changes to this bug.