script: Mark callback methods with CanGc. (#35753)

Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
Josh Matthews 2025-03-03 07:17:25 -05:00 committed by GitHub
parent 3d320fa96a
commit 5650fa2e79
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 133 additions and 67 deletions

View file

@ -417,6 +417,10 @@ DOMInterfaces = {
'canGc': ['CloneNode', 'SetTextContent'],
},
'NodeIterator': {
'canGc': ['NextNode', 'PreviousNode'],
},
'Notification': {
'canGc': ['RequestPermission'],
},
@ -518,6 +522,10 @@ DOMInterfaces = {
'canGc': ['Encode']
},
'TreeWalker': {
'canGc': ['ParentNode', 'PreviousNode', 'NextNode', 'FirstChild', 'LastChild', 'PreviousSibling', 'NextSibling']
},
'URL': {
'weakReferenceable': True,
'canGc': ['Parse', 'SearchParams'],
@ -598,7 +606,7 @@ DOMInterfaces = {
},
'XRTest': {
'canGc': ['SimulateDeviceConnection', 'DisconnectAllDevices'],
'canGc': ['SimulateDeviceConnection', 'DisconnectAllDevices', 'SimulateUserActivation'],
},
'XRView': {