Bug 136134

Summary: ES6 Set constructor does not follow the spec
Product: WebKit Reporter: ide
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: ggaren, oliver
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

ide
Reported 2014-08-21 15:27:51 PDT
According to the latest draft of the specification and other implementations of ES6's Set, "new Set" should optionally take an iterable instead of variable arguments. In trunk (and Safari 8 and iOS 8), SetConstructor::constructSet processes variable arguments. Additionally, calling "Set(...)" should always throw a TypeError regardless of its arguments. Currently SetConstructor::callSet does not raise an exception when invoked as "Set()" without arguments.
Attachments
ide
Comment 1 2017-07-11 02:31:20 PDT
This has been fixed as of iOS 9.
Note You need to log in before you can comment on or make changes to this bug.