From 07a2aa053135710225a177ccc34139975990d28f Mon Sep 17 00:00:00 2001 From: Yuichiro Yamashita Date: Sun, 14 Aug 2022 18:30:37 +0900 Subject: [PATCH] remove typescript interfaces --- scripts/globals-extractor.mjs | 5 +- src/compiler/utils/names.ts | 601 +--------------------------------- 2 files changed, 3 insertions(+), 603 deletions(-) diff --git a/scripts/globals-extractor.mjs b/scripts/globals-extractor.mjs index b2e0f52331..80f5277f37 100644 --- a/scripts/globals-extractor.mjs +++ b/scripts/globals-extractor.mjs @@ -15,8 +15,7 @@ const extract_interfaces_and_references = (data) => { data.split('\n').forEach(line => { const trimmed = line.trim(); const split = trimmed.replace(/[\s+]/, ' ').split(' '); - if (split[0] === 'interface') interfaces.push(extract_name(split[1])); - else if (split[0] === 'declare') interfaces.push(extract_name(split[2])); + if (split[0] === 'declare') interfaces.push(extract_name(split[2])); else if (trimmed.startsWith('/// { const interfaces = await get_interfaces('es2021.full'); // MEMO: add additional objects/interfaces which existed in `src/compiler/utils/names.ts` // before this script was introduced but could not be retrieved by this process. - interfaces.push(...['globalThis', 'InternalError', 'process', 'undefined']); + interfaces.push(...['global', 'globalThis', 'InternalError', 'process', 'undefined']); new Set(interfaces.sort()).forEach((i) => console.log(`'${i}',`)); })(); diff --git a/src/compiler/utils/names.ts b/src/compiler/utils/names.ts index 2073b7e8e8..52e09edf32 100644 --- a/src/compiler/utils/names.ts +++ b/src/compiler/utils/names.ts @@ -2,105 +2,48 @@ import { isIdentifierStart, isIdentifierChar } from 'acorn'; import full_char_code_at from './full_char_code_at'; export const globals = new Set([ - 'ANGLE_instanced_arrays', - 'ARIAMixin', 'AbortController', 'AbortSignal', - 'AbortSignalEventMap', 'AbstractRange', - 'AbstractWorker', - 'AbstractWorkerEventMap', 'ActiveXObject', - 'AddEventListenerOptions', - 'AesCbcParams', - 'AesCtrParams', - 'AesDerivedKeyParams', - 'AesGcmParams', - 'AesKeyAlgorithm', - 'AesKeyGenParams', 'AggregateError', - 'AggregateErrorConstructor', - 'Algorithm', 'AnalyserNode', - 'AnalyserOptions', - 'Animatable', 'Animation', 'AnimationEffect', 'AnimationEvent', - 'AnimationEventInit', - 'AnimationEventMap', - 'AnimationFrameProvider', 'AnimationPlaybackEvent', - 'AnimationPlaybackEventInit', 'AnimationTimeline', 'Array', 'ArrayBuffer', - 'ArrayBufferConstructor', - 'ArrayBufferTypes', - 'ArrayBufferView', - 'ArrayConstructor', - 'ArrayLike', - 'AssignedNodesOptions', - 'AsyncGenerator', - 'AsyncGeneratorFunction', - 'AsyncGeneratorFunctionConstructor', - 'AsyncIterable', - 'AsyncIterableIterator', - 'AsyncIterator', 'Atomics', 'Attr', 'Audio', 'AudioBuffer', - 'AudioBufferOptions', 'AudioBufferSourceNode', - 'AudioBufferSourceOptions', - 'AudioConfiguration', 'AudioContext', - 'AudioContextOptions', 'AudioDestinationNode', 'AudioListener', 'AudioNode', - 'AudioNodeOptions', 'AudioParam', 'AudioParamMap', 'AudioProcessingEvent', - 'AudioProcessingEventInit', 'AudioScheduledSourceNode', - 'AudioScheduledSourceNodeEventMap', - 'AudioTimestamp', 'AudioWorklet', 'AudioWorkletNode', - 'AudioWorkletNodeEventMap', - 'AudioWorkletNodeOptions', - 'AuthenticationExtensionsClientInputs', - 'AuthenticationExtensionsClientOutputs', 'AuthenticatorAssertionResponse', 'AuthenticatorAttestationResponse', 'AuthenticatorResponse', - 'AuthenticatorSelectionCriteria', 'BarProp', 'BaseAudioContext', - 'BaseAudioContextEventMap', 'BeforeUnloadEvent', 'BigInt', 'BigInt64Array', - 'BigInt64ArrayConstructor', - 'BigIntConstructor', - 'BigIntToLocaleStringOptions', 'BigUint64Array', - 'BigUint64ArrayConstructor', 'BiquadFilterNode', - 'BiquadFilterOptions', 'Blob', - 'BlobCallback', 'BlobEvent', - 'BlobEventInit', - 'BlobPropertyBag', - 'Body', 'Boolean', - 'BooleanConstructor', 'BroadcastChannel', - 'BroadcastChannelEventMap', 'ByteLengthQueuingStrategy', 'CDATASection', 'CSS', @@ -123,90 +66,39 @@ export const globals = new Set([ 'CSSSupportsRule', 'CSSTransition', 'Cache', - 'CacheQueryOptions', 'CacheStorage', - 'CallableFunction', - 'CanvasCompositing', - 'CanvasDrawImage', - 'CanvasDrawPath', - 'CanvasFillStrokeStyles', - 'CanvasFilters', 'CanvasGradient', - 'CanvasImageData', - 'CanvasImageSmoothing', - 'CanvasPath', - 'CanvasPathDrawingStyles', 'CanvasPattern', - 'CanvasRect', 'CanvasRenderingContext2D', - 'CanvasRenderingContext2DSettings', - 'CanvasShadowStyles', - 'CanvasState', - 'CanvasText', - 'CanvasTextDrawingStyles', - 'CanvasTransform', - 'CanvasUserInterface', 'ChannelMergerNode', - 'ChannelMergerOptions', 'ChannelSplitterNode', - 'ChannelSplitterOptions', 'CharacterData', - 'ChildNode', 'ClassDecorator', - 'ClientQueryOptions', 'ClientRect', 'Clipboard', 'ClipboardEvent', - 'ClipboardEventInit', 'ClipboardItem', - 'ClipboardItemOptions', 'CloseEvent', - 'CloseEventInit', - 'Collator', - 'CollatorOptions', 'Comment', - 'CompileError', 'CompositionEvent', - 'CompositionEventInit', - 'ComputedEffectTiming', - 'ComputedKeyframe', - 'ConcatArray', - 'Console', 'ConstantSourceNode', - 'ConstantSourceOptions', - 'ConstrainBooleanParameters', - 'ConstrainDOMStringParameters', - 'ConstrainDoubleRange', - 'ConstrainULongRange', 'ConvolverNode', - 'ConvolverOptions', 'CountQueuingStrategy', 'Credential', - 'CredentialCreationOptions', - 'CredentialPropertiesOutput', - 'CredentialRequestOptions', 'CredentialsContainer', 'Crypto', 'CryptoKey', - 'CryptoKeyPair', - 'CustomElementConstructor', 'CustomElementRegistry', 'CustomEvent', - 'CustomEventInit', 'DOMException', 'DOMImplementation', 'DOMMatrix', - 'DOMMatrix2DInit', - 'DOMMatrixInit', 'DOMMatrixReadOnly', 'DOMParser', 'DOMPoint', - 'DOMPointInit', 'DOMPointReadOnly', 'DOMQuad', - 'DOMQuadInit', 'DOMRect', - 'DOMRectInit', 'DOMRectList', 'DOMRectReadOnly', 'DOMStringList', @@ -216,140 +108,52 @@ export const globals = new Set([ 'DataTransferItem', 'DataTransferItemList', 'DataView', - 'DataViewConstructor', 'Date', - 'DateConstructor', - 'DateTimeFormat', - 'DateTimeFormatOptions', - 'DateTimeFormatPart', - 'DecodeErrorCallback', - 'DecodeSuccessCallback', 'DelayNode', - 'DelayOptions', 'DeviceMotionEvent', - 'DeviceMotionEventAcceleration', - 'DeviceMotionEventAccelerationInit', - 'DeviceMotionEventInit', - 'DeviceMotionEventRotationRate', - 'DeviceMotionEventRotationRateInit', 'DeviceOrientationEvent', - 'DeviceOrientationEventInit', - 'DisplayMediaStreamConstraints', 'Document', - 'DocumentAndElementEventHandlers', - 'DocumentAndElementEventHandlersEventMap', - 'DocumentEventMap', 'DocumentFragment', - 'DocumentOrShadowRoot', 'DocumentTimeline', - 'DocumentTimelineOptions', 'DocumentType', - 'DoubleRange', 'DragEvent', - 'DragEventInit', 'DynamicsCompressorNode', - 'DynamicsCompressorOptions', - 'EXT_blend_minmax', - 'EXT_color_buffer_float', - 'EXT_color_buffer_half_float', - 'EXT_float_blend', - 'EXT_frag_depth', - 'EXT_sRGB', - 'EXT_shader_texture_lod', - 'EXT_texture_compression_rgtc', - 'EXT_texture_filter_anisotropic', - 'EcKeyAlgorithm', - 'EcKeyGenParams', - 'EcKeyImportParams', - 'EcdhKeyDeriveParams', - 'EcdsaParams', - 'EffectTiming', 'Element', - 'ElementCSSInlineStyle', - 'ElementContentEditable', - 'ElementCreationOptions', - 'ElementDefinitionOptions', - 'ElementEventMap', 'Enumerator', - 'EnumeratorConstructor', 'Error', - 'ErrorCallback', - 'ErrorConstructor', 'ErrorEvent', - 'ErrorEventInit', 'EvalError', - 'EvalErrorConstructor', 'Event', - 'EventInit', - 'EventListener', - 'EventListenerObject', - 'EventListenerOptions', - 'EventModifierInit', 'EventSource', - 'EventSourceEventMap', - 'EventSourceInit', 'EventTarget', 'External', 'File', - 'FileCallback', 'FileList', - 'FilePropertyBag', 'FileReader', - 'FileReaderEventMap', 'FileSystem', 'FileSystemDirectoryEntry', 'FileSystemDirectoryReader', - 'FileSystemEntriesCallback', 'FileSystemEntry', - 'FileSystemEntryCallback', 'FileSystemFileEntry', - 'FileSystemFlags', 'FinalizationRegistry', - 'FinalizationRegistryConstructor', 'Float32Array', - 'Float32ArrayConstructor', 'Float64Array', - 'Float64ArrayConstructor', 'FocusEvent', - 'FocusEventInit', - 'FocusOptions', 'FontFace', - 'FontFaceDescriptors', 'FontFaceSet', - 'FontFaceSetEventMap', 'FontFaceSetLoadEvent', - 'FontFaceSetLoadEventInit', - 'FontFaceSource', 'FormData', 'FormDataEvent', - 'FormDataEventInit', - 'FrameRequestCallback', - 'FullscreenOptions', 'Function', - 'FunctionConstructor', - 'FunctionStringCallback', 'GainNode', - 'GainOptions', 'Gamepad', 'GamepadButton', 'GamepadEvent', - 'GamepadEventInit', 'GamepadHapticActuator', - 'Generator', - 'GeneratorFunction', - 'GeneratorFunctionConstructor', - 'GenericTransformStream', 'Geolocation', 'GeolocationCoordinates', 'GeolocationPosition', 'GeolocationPositionError', - 'GetAnimationsOptions', - 'GetNotificationOptions', - 'GetRootNodeOptions', - 'Global', - 'GlobalDescriptor', - 'GlobalEventHandlers', - 'GlobalEventHandlersEventMap', 'HTMLAllCollection', 'HTMLAnchorElement', 'HTMLAreaElement', @@ -357,24 +161,17 @@ export const globals = new Set([ 'HTMLBRElement', 'HTMLBaseElement', 'HTMLBodyElement', - 'HTMLBodyElementEventMap', 'HTMLButtonElement', 'HTMLCanvasElement', 'HTMLCollection', - 'HTMLCollectionBase', - 'HTMLCollectionOf', 'HTMLDListElement', 'HTMLDataElement', 'HTMLDataListElement', 'HTMLDetailsElement', - 'HTMLDialogElement', 'HTMLDirectoryElement', 'HTMLDivElement', 'HTMLDocument', 'HTMLElement', - 'HTMLElementDeprecatedTagNameMap', - 'HTMLElementEventMap', - 'HTMLElementTagNameMap', 'HTMLEmbedElement', 'HTMLFieldSetElement', 'HTMLFontElement', @@ -382,12 +179,10 @@ export const globals = new Set([ 'HTMLFormElement', 'HTMLFrameElement', 'HTMLFrameSetElement', - 'HTMLFrameSetElementEventMap', 'HTMLHRElement', 'HTMLHeadElement', 'HTMLHeadingElement', 'HTMLHtmlElement', - 'HTMLHyperlinkElementUtils', 'HTMLIFrameElement', 'HTMLImageElement', 'HTMLInputElement', @@ -398,7 +193,6 @@ export const globals = new Set([ 'HTMLMapElement', 'HTMLMarqueeElement', 'HTMLMediaElement', - 'HTMLMediaElementEventMap', 'HTMLMenuElement', 'HTMLMetaElement', 'HTMLMeterElement', @@ -408,7 +202,6 @@ export const globals = new Set([ 'HTMLOptGroupElement', 'HTMLOptionElement', 'HTMLOptionsCollection', - 'HTMLOrSVGElement', 'HTMLOutputElement', 'HTMLParagraphElement', 'HTMLParamElement', @@ -425,9 +218,7 @@ export const globals = new Set([ 'HTMLTableCaptionElement', 'HTMLTableCellElement', 'HTMLTableColElement', - 'HTMLTableDataCellElement', 'HTMLTableElement', - 'HTMLTableHeaderCellElement', 'HTMLTableRowElement', 'HTMLTableSectionElement', 'HTMLTemplateElement', @@ -438,434 +229,166 @@ export const globals = new Set([ 'HTMLUListElement', 'HTMLUnknownElement', 'HTMLVideoElement', - 'HTMLVideoElementEventMap', 'HashChangeEvent', - 'HashChangeEventInit', 'Headers', 'History', - 'HkdfParams', - 'HmacImportParams', - 'HmacKeyAlgorithm', - 'HmacKeyGenParams', - 'IArguments', 'IDBCursor', 'IDBCursorWithValue', 'IDBDatabase', - 'IDBDatabaseEventMap', - 'IDBDatabaseInfo', 'IDBFactory', 'IDBIndex', - 'IDBIndexParameters', 'IDBKeyRange', 'IDBObjectStore', - 'IDBObjectStoreParameters', 'IDBOpenDBRequest', - 'IDBOpenDBRequestEventMap', 'IDBRequest', - 'IDBRequestEventMap', 'IDBTransaction', - 'IDBTransactionEventMap', 'IDBVersionChangeEvent', - 'IDBVersionChangeEventInit', 'IIRFilterNode', - 'IIRFilterOptions', - 'ITextWriter', 'IdleDeadline', - 'IdleRequestCallback', - 'IdleRequestOptions', 'Image', 'ImageBitmap', - 'ImageBitmapOptions', 'ImageBitmapRenderingContext', - 'ImageBitmapRenderingContextSettings', 'ImageData', - 'ImageDataSettings', - 'ImportMeta', 'Infinity', - 'InnerHTML', 'InputEvent', - 'InputEventInit', - 'Instance', 'Int16Array', - 'Int16ArrayConstructor', 'Int32Array', - 'Int32ArrayConstructor', 'Int8Array', - 'Int8ArrayConstructor', 'InternalError', 'IntersectionObserver', - 'IntersectionObserverCallback', 'IntersectionObserverEntry', - 'IntersectionObserverEntryInit', - 'IntersectionObserverInit', 'Intl', - 'Iterable', - 'IterableIterator', - 'Iterator', - 'IteratorReturnResult', - 'IteratorYieldResult', 'JSON', - 'JsonWebKey', - 'KHR_parallel_shader_compile', - 'KeyAlgorithm', 'KeyboardEvent', - 'KeyboardEventInit', - 'Keyframe', - 'KeyframeAnimationOptions', 'KeyframeEffect', - 'KeyframeEffectOptions', - 'LinkError', - 'LinkStyle', 'Location', 'Map', - 'MapConstructor', 'Math', 'MathMLElement', - 'MathMLElementEventMap', 'MediaCapabilities', - 'MediaCapabilitiesDecodingInfo', - 'MediaCapabilitiesEncodingInfo', - 'MediaCapabilitiesInfo', - 'MediaConfiguration', - 'MediaDecodingConfiguration', 'MediaDeviceInfo', 'MediaDevices', - 'MediaDevicesEventMap', 'MediaElementAudioSourceNode', - 'MediaElementAudioSourceOptions', - 'MediaEncodingConfiguration', 'MediaEncryptedEvent', - 'MediaEncryptedEventInit', 'MediaError', - 'MediaImage', 'MediaKeyMessageEvent', - 'MediaKeyMessageEventInit', 'MediaKeySession', - 'MediaKeySessionEventMap', 'MediaKeyStatusMap', 'MediaKeySystemAccess', - 'MediaKeySystemConfiguration', - 'MediaKeySystemMediaCapability', 'MediaKeys', 'MediaList', 'MediaMetadata', - 'MediaMetadataInit', - 'MediaPositionState', 'MediaQueryList', 'MediaQueryListEvent', - 'MediaQueryListEventInit', - 'MediaQueryListEventMap', 'MediaRecorder', 'MediaRecorderErrorEvent', - 'MediaRecorderErrorEventInit', - 'MediaRecorderEventMap', - 'MediaRecorderOptions', 'MediaSession', - 'MediaSessionActionDetails', - 'MediaSessionActionHandler', 'MediaSource', - 'MediaSourceEventMap', 'MediaStream', 'MediaStreamAudioDestinationNode', 'MediaStreamAudioSourceNode', - 'MediaStreamAudioSourceOptions', - 'MediaStreamConstraints', - 'MediaStreamEventMap', 'MediaStreamTrack', 'MediaStreamTrackEvent', - 'MediaStreamTrackEventInit', - 'MediaStreamTrackEventMap', - 'MediaTrackCapabilities', - 'MediaTrackConstraintSet', - 'MediaTrackConstraints', - 'MediaTrackSettings', - 'MediaTrackSupportedConstraints', - 'Memory', - 'MemoryDescriptor', 'MessageChannel', 'MessageEvent', - 'MessageEventInit', 'MessagePort', - 'MessagePortEventMap', 'MethodDecorator', 'MimeType', 'MimeTypeArray', - 'Module', - 'ModuleExportDescriptor', - 'ModuleImportDescriptor', 'MouseEvent', - 'MouseEventInit', - 'MultiCacheQueryOptions', - 'MutationCallback', 'MutationEvent', 'MutationObserver', - 'MutationObserverInit', 'MutationRecord', 'NaN', 'NamedNodeMap', 'Navigator', - 'NavigatorAutomationInformation', - 'NavigatorConcurrentHardware', - 'NavigatorContentUtils', - 'NavigatorCookies', - 'NavigatorID', - 'NavigatorLanguage', - 'NavigatorNetworkInformation', - 'NavigatorOnLine', - 'NavigatorPlugins', - 'NavigatorStorage', 'NetworkInformation', - 'NewableFunction', 'Node', 'NodeFilter', 'NodeIterator', 'NodeList', - 'NodeListOf', - 'NonDocumentTypeChildNode', - 'NonElementParentNode', 'Notification', - 'NotificationAction', - 'NotificationEventMap', - 'NotificationOptions', - 'NotificationPermissionCallback', 'Number', - 'NumberConstructor', - 'NumberFormat', - 'NumberFormatOptions', - 'OES_element_index_uint', - 'OES_fbo_render_mipmap', - 'OES_standard_derivatives', - 'OES_texture_float', - 'OES_texture_float_linear', - 'OES_texture_half_float', - 'OES_texture_half_float_linear', - 'OES_vertex_array_object', - 'OVR_multiview2', 'Object', - 'ObjectConstructor', 'OfflineAudioCompletionEvent', - 'OfflineAudioCompletionEventInit', 'OfflineAudioContext', - 'OfflineAudioContextEventMap', - 'OfflineAudioContextOptions', - 'OffscreenCanvas', - 'OnBeforeUnloadEventHandlerNonNull', - 'OnErrorEventHandlerNonNull', 'Option', - 'OptionalEffectTiming', 'OscillatorNode', - 'OscillatorOptions', 'OverconstrainedError', 'PageTransitionEvent', - 'PageTransitionEventInit', 'PannerNode', - 'PannerOptions', 'ParameterDecorator', - 'ParentNode', 'Path2D', 'PaymentAddress', - 'PaymentCurrencyAmount', - 'PaymentDetailsBase', - 'PaymentDetailsInit', - 'PaymentDetailsModifier', - 'PaymentDetailsUpdate', - 'PaymentItem', 'PaymentMethodChangeEvent', - 'PaymentMethodChangeEventInit', - 'PaymentMethodData', 'PaymentRequest', - 'PaymentRequestEventMap', 'PaymentRequestUpdateEvent', - 'PaymentRequestUpdateEventInit', 'PaymentResponse', - 'PaymentValidationErrors', - 'Pbkdf2Params', 'Performance', 'PerformanceEntry', - 'PerformanceEventMap', 'PerformanceEventTiming', 'PerformanceMark', - 'PerformanceMarkOptions', 'PerformanceMeasure', - 'PerformanceMeasureOptions', 'PerformanceNavigation', 'PerformanceNavigationTiming', 'PerformanceObserver', - 'PerformanceObserverCallback', 'PerformanceObserverEntryList', - 'PerformanceObserverInit', 'PerformancePaintTiming', 'PerformanceResourceTiming', 'PerformanceServerTiming', 'PerformanceTiming', 'PeriodicWave', - 'PeriodicWaveConstraints', - 'PeriodicWaveOptions', - 'PermissionDescriptor', 'PermissionStatus', - 'PermissionStatusEventMap', 'Permissions', 'PictureInPictureWindow', - 'PictureInPictureWindowEventMap', 'Plugin', 'PluginArray', - 'PluralRules', - 'PluralRulesOptions', 'PointerEvent', - 'PointerEventInit', 'PopStateEvent', - 'PopStateEventInit', - 'PositionCallback', - 'PositionErrorCallback', - 'PositionOptions', - 'PostMessageOptions', 'ProcessingInstruction', 'ProgressEvent', - 'ProgressEventInit', 'Promise', - 'PromiseConstructor', 'PromiseConstructorLike', - 'PromiseFulfilledResult', - 'PromiseLike', - 'PromiseRejectedResult', 'PromiseRejectionEvent', - 'PromiseRejectionEventInit', 'PropertyDecorator', - 'PropertyDescriptor', - 'PropertyDescriptorMap', - 'PropertyIndexedKeyframes', 'PropertyKey', 'Proxy', - 'ProxyConstructor', - 'ProxyHandler', 'PublicKeyCredential', - 'PublicKeyCredentialCreationOptions', - 'PublicKeyCredentialDescriptor', - 'PublicKeyCredentialEntity', - 'PublicKeyCredentialParameters', - 'PublicKeyCredentialRequestOptions', - 'PublicKeyCredentialRpEntity', - 'PublicKeyCredentialUserEntity', 'PushManager', 'PushSubscription', - 'PushSubscriptionJSON', 'PushSubscriptionOptions', - 'PushSubscriptionOptionsInit', - 'QueuingStrategy', - 'QueuingStrategyInit', - 'QueuingStrategySize', - 'RTCAnswerOptions', 'RTCCertificate', - 'RTCCertificateExpiration', - 'RTCConfiguration', 'RTCDTMFSender', - 'RTCDTMFSenderEventMap', 'RTCDTMFToneChangeEvent', - 'RTCDTMFToneChangeEventInit', 'RTCDataChannel', 'RTCDataChannelEvent', - 'RTCDataChannelEventInit', - 'RTCDataChannelEventMap', - 'RTCDataChannelInit', - 'RTCDtlsFingerprint', 'RTCDtlsTransport', - 'RTCDtlsTransportEventMap', 'RTCIceCandidate', - 'RTCIceCandidateInit', - 'RTCIceCandidatePairStats', - 'RTCIceServer', 'RTCIceTransport', - 'RTCInboundRtpStreamStats', - 'RTCLocalSessionDescriptionInit', - 'RTCOfferAnswerOptions', - 'RTCOfferOptions', - 'RTCOutboundRtpStreamStats', 'RTCPeerConnection', - 'RTCPeerConnectionErrorCallback', - 'RTCPeerConnectionEventMap', 'RTCPeerConnectionIceErrorEvent', - 'RTCPeerConnectionIceErrorEventInit', 'RTCPeerConnectionIceEvent', - 'RTCPeerConnectionIceEventInit', - 'RTCReceivedRtpStreamStats', - 'RTCRtcpParameters', - 'RTCRtpCapabilities', - 'RTCRtpCodecCapability', - 'RTCRtpCodecParameters', - 'RTCRtpCodingParameters', - 'RTCRtpContributingSource', - 'RTCRtpEncodingParameters', - 'RTCRtpHeaderExtensionCapability', - 'RTCRtpHeaderExtensionParameters', - 'RTCRtpParameters', - 'RTCRtpReceiveParameters', 'RTCRtpReceiver', - 'RTCRtpSendParameters', 'RTCRtpSender', - 'RTCRtpStreamStats', - 'RTCRtpSynchronizationSource', 'RTCRtpTransceiver', - 'RTCRtpTransceiverInit', - 'RTCSentRtpStreamStats', 'RTCSessionDescription', - 'RTCSessionDescriptionCallback', - 'RTCSessionDescriptionInit', - 'RTCStats', 'RTCStatsReport', 'RTCTrackEvent', - 'RTCTrackEventInit', - 'RTCTransportStats', 'RadioNodeList', 'Range', 'RangeError', - 'RangeErrorConstructor', 'ReadableStream', 'ReadableStreamDefaultController', - 'ReadableStreamDefaultReadDoneResult', - 'ReadableStreamDefaultReadValueResult', 'ReadableStreamDefaultReader', - 'ReadableStreamGenericReader', - 'ReadableWritablePair', - 'ReadonlyArray', - 'ReadonlyMap', - 'ReadonlySet', 'ReferenceError', - 'ReferenceErrorConstructor', 'Reflect', 'RegExp', - 'RegExpConstructor', - 'RegExpExecArray', - 'RegExpMatchArray', - 'RegistrationOptions', - 'RelativeTimeFormat', - 'RelativeTimeFormatOptions', - 'RelativeTimeFormatPart', 'RemotePlayback', - 'RemotePlaybackAvailabilityCallback', - 'RemotePlaybackEventMap', 'Request', - 'RequestInit', 'ResizeObserver', - 'ResizeObserverCallback', 'ResizeObserverEntry', - 'ResizeObserverOptions', 'ResizeObserverSize', - 'ResolvedCollatorOptions', - 'ResolvedDateTimeFormatOptions', - 'ResolvedNumberFormatOptions', - 'ResolvedPluralRulesOptions', - 'ResolvedRelativeTimeFormatOptions', 'Response', - 'ResponseInit', - 'RsaHashedImportParams', - 'RsaHashedKeyAlgorithm', - 'RsaHashedKeyGenParams', - 'RsaKeyAlgorithm', - 'RsaKeyGenParams', - 'RsaOaepParams', - 'RsaOtherPrimesInfo', - 'RsaPssParams', - 'RuntimeError', 'SVGAElement', 'SVGAngle', 'SVGAnimateElement', @@ -879,13 +402,11 @@ export const globals = new Set([ 'SVGAnimatedLengthList', 'SVGAnimatedNumber', 'SVGAnimatedNumberList', - 'SVGAnimatedPoints', 'SVGAnimatedPreserveAspectRatio', 'SVGAnimatedRect', 'SVGAnimatedString', 'SVGAnimatedTransformList', 'SVGAnimationElement', - 'SVGBoundingBoxOptions', 'SVGCircleElement', 'SVGClipPathElement', 'SVGComponentTransferFunctionElement', @@ -893,8 +414,6 @@ export const globals = new Set([ 'SVGDefsElement', 'SVGDescElement', 'SVGElement', - 'SVGElementEventMap', - 'SVGElementTagNameMap', 'SVGEllipseElement', 'SVGFEBlendElement', 'SVGFEColorMatrixElement', @@ -922,8 +441,6 @@ export const globals = new Set([ 'SVGFETileElement', 'SVGFETurbulenceElement', 'SVGFilterElement', - 'SVGFilterPrimitiveStandardAttributes', - 'SVGFitToViewBox', 'SVGForeignObjectElement', 'SVGGElement', 'SVGGeometryElement', @@ -952,7 +469,6 @@ export const globals = new Set([ 'SVGRect', 'SVGRectElement', 'SVGSVGElement', - 'SVGSVGElementEventMap', 'SVGScriptElement', 'SVGSetElement', 'SVGStopElement', @@ -961,7 +477,6 @@ export const globals = new Set([ 'SVGSwitchElement', 'SVGSymbolElement', 'SVGTSpanElement', - 'SVGTests', 'SVGTextContentElement', 'SVGTextElement', 'SVGTextPathElement', @@ -969,196 +484,97 @@ export const globals = new Set([ 'SVGTitleElement', 'SVGTransform', 'SVGTransformList', - 'SVGURIReference', 'SVGUnitTypes', 'SVGUseElement', 'SVGViewElement', 'SafeArray', 'Screen', 'ScreenOrientation', - 'ScreenOrientationEventMap', 'ScriptProcessorNode', - 'ScriptProcessorNodeEventMap', - 'ScrollIntoViewOptions', - 'ScrollOptions', - 'ScrollToOptions', 'SecurityPolicyViolationEvent', - 'SecurityPolicyViolationEventInit', 'Selection', 'ServiceWorker', 'ServiceWorkerContainer', - 'ServiceWorkerContainerEventMap', - 'ServiceWorkerEventMap', 'ServiceWorkerRegistration', - 'ServiceWorkerRegistrationEventMap', 'Set', - 'SetConstructor', 'ShadowRoot', - 'ShadowRootInit', - 'ShareData', 'SharedArrayBuffer', - 'SharedArrayBufferConstructor', 'SharedWorker', - 'Slottable', 'SourceBuffer', - 'SourceBufferEventMap', 'SourceBufferList', - 'SourceBufferListEventMap', 'SpeechRecognitionAlternative', 'SpeechRecognitionErrorEvent', - 'SpeechRecognitionErrorEventInit', 'SpeechRecognitionResult', 'SpeechRecognitionResultList', 'SpeechSynthesis', 'SpeechSynthesisErrorEvent', - 'SpeechSynthesisErrorEventInit', 'SpeechSynthesisEvent', - 'SpeechSynthesisEventInit', - 'SpeechSynthesisEventMap', 'SpeechSynthesisUtterance', - 'SpeechSynthesisUtteranceEventMap', 'SpeechSynthesisVoice', 'StaticRange', - 'StaticRangeInit', 'StereoPannerNode', - 'StereoPannerOptions', 'Storage', - 'StorageEstimate', 'StorageEvent', - 'StorageEventInit', 'StorageManager', - 'StreamPipeOptions', 'String', - 'StringConstructor', 'StyleMedia', 'StyleSheet', 'StyleSheetList', 'SubmitEvent', - 'SubmitEventInit', 'SubtleCrypto', 'Symbol', - 'SymbolConstructor', 'SyntaxError', - 'SyntaxErrorConstructor', - 'Table', - 'TableDescriptor', - 'TemplateStringsArray', 'Text', - 'TextDecodeOptions', 'TextDecoder', - 'TextDecoderCommon', - 'TextDecoderOptions', 'TextDecoderStream', 'TextEncoder', - 'TextEncoderCommon', - 'TextEncoderEncodeIntoResult', 'TextEncoderStream', 'TextMetrics', - 'TextStreamBase', - 'TextStreamReader', - 'TextStreamWriter', 'TextTrack', 'TextTrackCue', - 'TextTrackCueEventMap', 'TextTrackCueList', - 'TextTrackEventMap', 'TextTrackList', - 'TextTrackListEventMap', - 'ThisType', 'TimeRanges', 'Touch', 'TouchEvent', - 'TouchEventInit', - 'TouchInit', 'TouchList', 'TrackEvent', - 'TrackEventInit', 'TransformStream', 'TransformStreamDefaultController', - 'Transformer', - 'TransformerFlushCallback', - 'TransformerStartCallback', - 'TransformerTransformCallback', 'TransitionEvent', - 'TransitionEventInit', 'TreeWalker', 'TypeError', - 'TypeErrorConstructor', - 'TypedPropertyDescriptor', 'UIEvent', - 'UIEventInit', - 'ULongRange', 'URIError', - 'URIErrorConstructor', 'URL', 'URLSearchParams', 'Uint16Array', - 'Uint16ArrayConstructor', 'Uint32Array', - 'Uint32ArrayConstructor', 'Uint8Array', - 'Uint8ArrayConstructor', 'Uint8ClampedArray', - 'Uint8ClampedArrayConstructor', - 'UnderlyingSink', - 'UnderlyingSinkAbortCallback', - 'UnderlyingSinkCloseCallback', - 'UnderlyingSinkStartCallback', - 'UnderlyingSinkWriteCallback', - 'UnderlyingSource', - 'UnderlyingSourceCancelCallback', - 'UnderlyingSourcePullCallback', - 'UnderlyingSourceStartCallback', 'VBArray', - 'VBArrayConstructor', 'VTTCue', 'VTTRegion', 'ValidityState', 'VarDate', - 'VideoConfiguration', 'VideoPlaybackQuality', 'VisualViewport', - 'VisualViewportEventMap', - 'VoidFunction', - 'WEBGL_color_buffer_float', - 'WEBGL_compressed_texture_astc', - 'WEBGL_compressed_texture_etc', - 'WEBGL_compressed_texture_etc1', - 'WEBGL_compressed_texture_pvrtc', - 'WEBGL_compressed_texture_s3tc', - 'WEBGL_compressed_texture_s3tc_srgb', - 'WEBGL_debug_renderer_info', - 'WEBGL_debug_shaders', - 'WEBGL_depth_texture', - 'WEBGL_draw_buffers', - 'WEBGL_lose_context', 'WSH', 'WScript', 'WaveShaperNode', - 'WaveShaperOptions', 'WeakMap', - 'WeakMapConstructor', 'WeakRef', - 'WeakRefConstructor', 'WeakSet', - 'WeakSetConstructor', 'WebAssembly', - 'WebAssemblyInstantiatedSource', 'WebGL2RenderingContext', - 'WebGL2RenderingContextBase', - 'WebGL2RenderingContextOverloads', 'WebGLActiveInfo', 'WebGLBuffer', - 'WebGLContextAttributes', 'WebGLContextEvent', - 'WebGLContextEventInit', 'WebGLFramebuffer', 'WebGLProgram', 'WebGLQuery', 'WebGLRenderbuffer', 'WebGLRenderingContext', - 'WebGLRenderingContextBase', - 'WebGLRenderingContextOverloads', 'WebGLSampler', 'WebGLShader', 'WebGLShaderPrecisionFormat', @@ -1167,37 +583,21 @@ export const globals = new Set([ 'WebGLTransformFeedback', 'WebGLUniformLocation', 'WebGLVertexArrayObject', - 'WebGLVertexArrayObjectOES', 'WebKitCSSMatrix', 'WebSocket', - 'WebSocketEventMap', 'WheelEvent', - 'WheelEventInit', 'Window', - 'WindowEventHandlers', - 'WindowEventHandlersEventMap', - 'WindowEventMap', - 'WindowLocalStorage', - 'WindowOrWorkerGlobalScope', - 'WindowPostMessageOptions', - 'WindowSessionStorage', 'Worker', - 'WorkerEventMap', - 'WorkerOptions', 'Worklet', - 'WorkletOptions', 'WritableStream', 'WritableStreamDefaultController', 'WritableStreamDefaultWriter', 'XMLDocument', 'XMLHttpRequest', - 'XMLHttpRequestEventMap', 'XMLHttpRequestEventTarget', - 'XMLHttpRequestEventTargetEventMap', 'XMLHttpRequestUpload', 'XMLSerializer', 'XPathEvaluator', - 'XPathEvaluatorBase', 'XPathExpression', 'XPathResult', 'XSLTProcessor', @@ -1237,6 +637,7 @@ export const globals = new Set([ 'frames', 'getComputedStyle', 'getSelection', + 'global', 'globalThis', 'history', 'importScripts',