[Webkit-unassigned] [Bug 277899] New: Object.keys(global) includes enumerable properties unless delete'd first

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Aug 10 01:29:19 PDT 2024


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

            Bug ID: 277899
           Summary: Object.keys(global) includes enumerable properties
                    unless delete'd first
           Product: WebKit
           Version: Safari 17
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: meghan at bun.sh

Discovered on Safari Version 17.5 (19618.2.12.11.6)

\> Object.keys(globalThis).includes("setInterval")
\< true

\> const d = Object.getOwnPropertyDescriptor(globalThis, "setInterval");
\> d.enumerable = false;
\> Object.defineProperty(globalThis, "setInterval", d);

\> Object.getOwnPropertyDescriptor(globalThis, "setInterval").enumerable
\< false

\> Object.keys(globalThis).includes("setInterval")
\< true

the final call should return false.

am unable to reproduce in Chrome Version 129.0.6647.0.
am unable to reproduce in Firefox 129.0.
am unable to reproduce with values that are not globalThis.

-- 
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/20240810/7066ef73/attachment.htm>


More information about the webkit-unassigned mailing list