[Webkit-unassigned] [Bug 284132] JSC::JSValue convert of JSConverter<IDLRecord<K, V>> crashes when converting an input WebCore::IDLRecord<WebCore::IDLUSVString, WebCore::IDLUnion<WebCore::IDLUndefined, WebCore::IDLUSVString>>

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Dec 5 17:59:48 PST 2024


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

--- Comment #9 from jlee53 at apple.com ---
Thanks to Chris and Sihui, this was root-cased to usage of the function putDirect in /WebCore/bindings/js/JSDOMConvertRecord.h when converting a native object to an IDL Record. 

PutDirect() assumes that the property name is not an index but in fact, it is. Conversion should use <bool createDataProperty(JSGlobalObject*, PropertyName, JSValue, bool shouldThrow)> which is what the spec states. Spec: https://webidl.spec.whatwg.org/#js-record

-- 
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/20241206/72bda658/attachment.htm>


More information about the webkit-unassigned mailing list