RESOLVED FIXED 188491
Break reference cycle in ErrorEvent by using JSValueInWrappedObject
https://bugs.webkit.org/show_bug.cgi?id=188491
Summary Break reference cycle in ErrorEvent by using JSValueInWrappedObject
Yusuke Suzuki
Reported 2018-08-12 13:54:16 PDT
ErrorEvent should not hold error strongly
Attachments
Patch (12.07 KB, patch)
2018-08-12 13:57 PDT, Yusuke Suzuki
no flags
Patch (14.26 KB, patch)
2018-08-12 14:25 PDT, Yusuke Suzuki
darin: review+
Yusuke Suzuki
Comment 1 2018-08-12 13:57:35 PDT
Yusuke Suzuki
Comment 2 2018-08-12 14:25:36 PDT
Darin Adler
Comment 3 2018-08-12 14:42:05 PDT
Comment on attachment 346989 [details] Patch I don’t fully understand the implications of aerialiing an object that could be changed after its serialized. Or if we are doing the right thing when there are multiple worlds involved. But that’s not specific to this patch, which is applying a pattern we already follow elsewhere.
Darin Adler
Comment 4 2018-08-12 14:43:58 PDT
Title of bug is not exactly right since it does need to hold the error “strongly” in the sense that its a reference that keeps the error object alive, just needs to do it in a way that is garbage collection compatible and doesn’t lead to reference cycles and storage leaks!
Yusuke Suzuki
Comment 5 2018-08-12 17:02:25 PDT
Radar WebKit Bug Importer
Comment 6 2018-08-12 17:03:26 PDT
Darin Adler
Comment 8 2018-08-13 09:47:39 PDT
Seems highly unlikely this change directly caused that build failure; maybe due to adding a new unified source file? The failure is a link error about export of a symbol affecting units tests. We should get someone to dive deeper into it. A rollout would be OK but this seems really peculiar.
Note You need to log in before you can comment on or make changes to this bug.