Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upJP22: 23.2.3.2 Set.prototype.clear should have NOTES like Map.prototype.clear #200
Comments
bterlson
closed this
in
75d74f2
Jan 16, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Constellation commentedNov 17, 2015
Map.prototype.clearhas NOTES, butSet.prototype.cleardoes not.Since
Map.prototype.deleteandSet.prototype.deletehas the almost same notes, to keep consistency, I think adding NOTES toSet.prototype.clearis preferable.like,
NOTE The existing [[SetData]] List is preserved because there may be existing SetIterator objects that are suspended midway through iterating over that List.
http://ecma-international.org/ecma-262/6.0/#sec-set.prototype.clear