Bug 136134 - ES6 Set constructor does not follow the spec
Summary: ES6 Set constructor does not follow the spec
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-21 15:27 PDT by ide
Modified: 2017-07-11 02:31 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ide 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.
Comment 1 ide 2017-07-11 02:31:20 PDT
This has been fixed as of iOS 9.