[Webkit-unassigned] [Bug 250511] New: JSValueGetType() is incorrect for BigInt values

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 12 05:47:02 PST 2023


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

            Bug ID: 250511
           Summary: JSValueGetType() is incorrect for BigInt values
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Mac (Apple Silicon)
                OS: macOS 13
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: kasperisager at hey.com

JSValueGetType() currently has no path for values of type BigInt and therefore falls through to the object case, returning kJSTypeObject:

https://github.com/WebKit/WebKit/blob/8196614cb0623111b43d1041469eb3247e5623bb/Source/JavaScriptCore/API/JSValueRef.cpp#L51-L79

I imagine a kJSTypeBigInt value should be introduced and a path for jsValue.isBigInt() added.

-- 
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/20230112/89bca459/attachment.htm>


More information about the webkit-unassigned mailing list