feat: add can_gc argument to to_frozen_array (#36043)

* feat: add can_gc argument to to_frozen_array

Signed-off-by: Arya Nair <aryaajitnair@gmail.com>

* fix: linting issues

Signed-off-by: Arya Nair <aryaajitnair@gmail.com>

* feat: add can_gc in binding.conf

Signed-off-by: Arya Nair <aryaajitnair@gmail.com>

* fix: linting issues

Signed-off-by: Arya Nair <aryaajitnair@gmail.com>

---------

Signed-off-by: Arya Nair <aryaajitnair@gmail.com>
This commit is contained in:
Arya Nair 2025-03-19 23:33:09 +05:30 committed by GitHub
parent 0917e080df
commit cb56ac8561
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 97 additions and 43 deletions

View file

@ -99,6 +99,10 @@ DOMInterfaces = {
'canGc': ['AppendRule', 'CssRules', 'DeleteRule', 'FindRule'],
},
'CSSLayerStatementRule': {
'canGc': ['NameList'],
},
'CSSMediaRule': {
'canGc': ['Media'],
},
@ -121,7 +125,7 @@ DOMInterfaces = {
},
'DataTransfer': {
'canGc': ['Files']
'canGc': ['Files', 'Types']
},
'DataTransferItem': {
@ -201,6 +205,10 @@ DOMInterfaces = {
'canGc': ['DispatchEvent'],
},
'ExtendableMessageEvent': {
'canGc': ['Ports'],
},
'FakeXRDevice': {
'canGc': ['Disconnect'],
},
@ -224,7 +232,7 @@ DOMInterfaces = {
'GamepadHapticActuator': {
'inRealms': ['PlayEffect', 'Reset'],
'canGc': ['PlayEffect', 'Reset'],
'canGc': ['PlayEffect', 'Reset', 'Effects'],
},
'GlobalScope': {
@ -250,6 +258,10 @@ DOMInterfaces = {
'weakReferenceable': True,
},
'GPUCompilationInfo': {
'canGc': ['Messages'],
},
'GPUDevice': {
'inRealms': [
'CreateComputePipelineAsync',
@ -387,6 +399,10 @@ DOMInterfaces = {
'canGc': ['SetText']
},
'IntersectionObserver': {
'canGc': ['Thresholds']
},
'Location': {
'canGc': ['Assign', 'Reload', 'Replace', 'SetHash', 'SetHost', 'SetHostname', 'SetHref', 'SetPathname', 'SetPort', 'SetProtocol', 'SetSearch'],
},
@ -413,6 +429,10 @@ DOMInterfaces = {
'canGc': ['GetOnmessage'],
},
'MessageEvent': {
'canGc': ['Ports'],
},
'MouseEvent': {
'canGc': ['OffsetX', 'OffsetY'],
},
@ -424,6 +444,7 @@ DOMInterfaces = {
'Navigator': {
'inRealms': ['GetVRDisplays'],
'canGc': ['Languages'],
},
'Node': {
@ -435,7 +456,7 @@ DOMInterfaces = {
},
'Notification': {
'canGc': ['RequestPermission'],
'canGc': ['RequestPermission', 'Actions', 'Vibrate'],
},
'OfflineAudioContext': {
@ -459,6 +480,10 @@ DOMInterfaces = {
'canGc': ['Mark', 'Measure'],
},
'PerformanceObserver': {
'canGc': ['SupportedEntryTypes'],
},
'Permissions': {
'canGc': ['Query', 'Request', 'Revoke'],
},
@ -609,13 +634,17 @@ DOMInterfaces = {
'canGc': ['GetOffsetReferenceSpace'],
},
'XRRenderState': {
'canGc': ['Layers'],
},
'XRRigidTransform': {
'canGc': ['Position', 'Orientation', 'Inverse', 'Matrix'],
},
'XRSession': {
'inRealms': ['RequestReferenceSpace', 'UpdateRenderState', 'UpdateTargetFrameRate'],
'canGc': ['End', 'RequestReferenceSpace', 'UpdateTargetFrameRate', 'RequestHitTestSource', 'GetSupportedFrameRates'],
'canGc': ['End', 'RequestReferenceSpace', 'UpdateTargetFrameRate', 'RequestHitTestSource', 'GetSupportedFrameRates', 'EnabledFeatures'],
},
'XRSystem': {
@ -656,6 +685,10 @@ DOMInterfaces = {
"canGc": ["Cancel", "Read", "ReleaseLock"]
},
'ResizeObserverEntry': {
'canGc': ['BorderBoxSize', 'ContentBoxSize', 'DevicePixelContentBoxSize'],
},
'WritableStream': {
'canGc': ['Abort', 'Close', 'GetWriter'],
'inRealms': ['Abort', 'Close', 'GetWriter'],
@ -671,6 +704,10 @@ DOMInterfaces = {
'inRealms': ['Abort', 'Close', 'Write'],
},
'WorkerNavigator': {
'canGc': ['Languages'],
},
}
Dictionaries = {