[Webkit-unassigned] [Bug 267494] New: Set methods still do not properly work with set-like objects

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jan 13 03:34:06 PST 2024


https://bugs.webkit.org/show_bug.cgi?id=267494

            Bug ID: 267494
           Summary: Set methods still do not properly work with set-like
                    objects
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: zloirock at ya.ru

new Set([1, 2, 3]).difference({
  size: -1,
  has() {
    return false;
  },
  keys() {
    return { next() { return { done: true }; } };
  },
});

should be a RangeError, GetSetRecord step 7.

-- 
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/20240113/e7b430c6/attachment.htm>


More information about the webkit-unassigned mailing list