RESOLVED FIXED 233253
[GLIB] jsc_value_object_define_property_accessor() throws an exception when called on a value without a wrapper instance
https://bugs.webkit.org/show_bug.cgi?id=233253
Summary [GLIB] jsc_value_object_define_property_accessor() throws an exception when c...
Carlos Garcia Campos
Reported 2021-11-17 06:51:15 PST
We assumed that getter and setter were always methods, so we always try to set the initial parameter as the instance. When called with a value ot having an instance we get an exception because the expected instance is nullptr.
Attachments
Patch (20.47 KB, patch)
2021-11-17 06:55 PST, Carlos Garcia Campos
mcatanzaro: review+
Carlos Garcia Campos
Comment 1 2021-11-17 06:55:36 PST
Michael Catanzaro
Comment 2 2021-11-17 07:43:34 PST
Comment on attachment 444514 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=444514&action=review Nice tests. > Source/JavaScriptCore/ChangeLog:9 > + instance. When called with a value ot having an instance we get an exception because the expected instance is not
Carlos Garcia Campos
Comment 3 2021-11-18 01:26:11 PST
Radar WebKit Bug Importer
Comment 4 2021-11-18 01:27:21 PST
Note You need to log in before you can comment on or make changes to this bug.