diff --git a/crates/oxc_linter/src/javascript_globals.rs b/crates/oxc_linter/src/javascript_globals.rs index 33440433f21fe..da2002aef7aa6 100644 --- a/crates/oxc_linter/src/javascript_globals.rs +++ b/crates/oxc_linter/src/javascript_globals.rs @@ -1,3 +1,6 @@ +// Auto-generated code, DO NOT EDIT DIRECTLY! +// To edit this generated file you have to run `cargo run -p javascript_globals`. + use phf::{phf_map, Map}; pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { @@ -22,6 +25,7 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "Int16Array" => false, "Int32Array" => false, "Int8Array" => false, + "Intl" => false, "JSON" => false, "Map" => false, "Math" => false, @@ -48,7 +52,6 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "WeakMap" => false, "WeakRef" => false, "WeakSet" => false, - "constructor" => false, "decodeURI" => false, "decodeURIComponent" => false, "encodeURI" => false, @@ -56,18 +59,12 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "escape" => false, "eval" => false, "globalThis" => false, - "hasOwnProperty" => false, "isFinite" => false, "isNaN" => false, - "isPrototypeOf" => false, "parseFloat" => false, "parseInt" => false, - "propertyIsEnumerable" => false, - "toLocaleString" => false, - "toString" => false, "undefined" => false, "unescape" => false, - "valueOf" => false, }, "es6" => phf_map! { "ArrayBuffer" => false, @@ -77,6 +74,7 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "Int16Array" => false, "Int32Array" => false, "Int8Array" => false, + "Intl" => false, "Map" => false, "Promise" => false, "Proxy" => false, @@ -98,6 +96,7 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "Int16Array" => false, "Int32Array" => false, "Int8Array" => false, + "Intl" => false, "Map" => false, "Promise" => false, "Proxy" => false, @@ -119,6 +118,7 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "Int16Array" => false, "Int32Array" => false, "Int8Array" => false, + "Intl" => false, "Map" => false, "Promise" => false, "Proxy" => false, @@ -141,6 +141,7 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "Int16Array" => false, "Int32Array" => false, "Int8Array" => false, + "Intl" => false, "Map" => false, "Promise" => false, "Proxy" => false, @@ -164,6 +165,7 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "Int16Array" => false, "Int32Array" => false, "Int8Array" => false, + "Intl" => false, "Map" => false, "Promise" => false, "Proxy" => false, @@ -187,6 +189,7 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "Int16Array" => false, "Int32Array" => false, "Int8Array" => false, + "Intl" => false, "Map" => false, "Promise" => false, "Proxy" => false, @@ -213,6 +216,7 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "Int16Array" => false, "Int32Array" => false, "Int8Array" => false, + "Intl" => false, "Map" => false, "Promise" => false, "Proxy" => false, @@ -242,6 +246,7 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "Int16Array" => false, "Int32Array" => false, "Int8Array" => false, + "Intl" => false, "Map" => false, "Promise" => false, "Proxy" => false, @@ -272,6 +277,7 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "Int16Array" => false, "Int32Array" => false, "Int8Array" => false, + "Intl" => false, "Map" => false, "Promise" => false, "Proxy" => false, @@ -302,6 +308,7 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "Int16Array" => false, "Int32Array" => false, "Int8Array" => false, + "Intl" => false, "Map" => false, "Promise" => false, "Proxy" => false, @@ -332,6 +339,7 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "Int16Array" => false, "Int32Array" => false, "Int8Array" => false, + "Intl" => false, "Map" => false, "Promise" => false, "Proxy" => false, @@ -349,91 +357,161 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "globalThis" => false, }, "browser" => phf_map! { + "AI" => false, + "AITextSession" => false, "AbortController" => false, "AbortSignal" => false, + "AbsoluteOrientationSensor" => false, + "AbstractRange" => false, + "Accelerometer" => false, "AnalyserNode" => false, "Animation" => false, - "AnimationEffectReadOnly" => false, - "AnimationEffectTiming" => false, - "AnimationEffectTimingReadOnly" => false, + "AnimationEffect" => false, "AnimationEvent" => false, "AnimationPlaybackEvent" => false, "AnimationTimeline" => false, - "ApplicationCache" => false, - "ApplicationCacheErrorEvent" => false, "Attr" => false, "Audio" => false, "AudioBuffer" => false, "AudioBufferSourceNode" => false, "AudioContext" => false, + "AudioData" => false, + "AudioDecoder" => false, "AudioDestinationNode" => false, + "AudioEncoder" => false, "AudioListener" => false, "AudioNode" => false, "AudioParam" => false, + "AudioParamMap" => false, "AudioProcessingEvent" => false, "AudioScheduledSourceNode" => false, + "AudioSinkInfo" => false, + "AudioWorklet" => false, "AudioWorkletGlobalScope" => false, "AudioWorkletNode" => false, "AudioWorkletProcessor" => false, + "AuthenticatorAssertionResponse" => false, + "AuthenticatorAttestationResponse" => false, + "AuthenticatorResponse" => false, + "BackgroundFetchManager" => false, + "BackgroundFetchRecord" => false, + "BackgroundFetchRegistration" => false, "BarProp" => false, + "BarcodeDetector" => false, "BaseAudioContext" => false, "BatteryManager" => false, "BeforeUnloadEvent" => false, "BiquadFilterNode" => false, "Blob" => false, "BlobEvent" => false, + "Bluetooth" => false, + "BluetoothCharacteristicProperties" => false, + "BluetoothDevice" => false, + "BluetoothRemoteGATTCharacteristic" => false, + "BluetoothRemoteGATTDescriptor" => false, + "BluetoothRemoteGATTServer" => false, + "BluetoothRemoteGATTService" => false, + "BluetoothUUID" => false, "BroadcastChannel" => false, - "BudgetService" => false, + "BrowserCaptureMediaStreamTrack" => false, "ByteLengthQueuingStrategy" => false, + "CDATASection" => false, "CSS" => false, + "CSSAnimation" => false, "CSSConditionRule" => false, + "CSSContainerRule" => false, + "CSSCounterStyleRule" => false, "CSSFontFaceRule" => false, + "CSSFontFeatureValuesRule" => false, + "CSSFontPaletteValuesRule" => false, "CSSGroupingRule" => false, + "CSSImageValue" => false, "CSSImportRule" => false, "CSSKeyframeRule" => false, "CSSKeyframesRule" => false, + "CSSKeywordValue" => false, + "CSSLayerBlockRule" => false, + "CSSLayerStatementRule" => false, + "CSSMathClamp" => false, + "CSSMathInvert" => false, + "CSSMathMax" => false, + "CSSMathMin" => false, + "CSSMathNegate" => false, + "CSSMathProduct" => false, + "CSSMathSum" => false, + "CSSMathValue" => false, "CSSMatrixComponent" => false, "CSSMediaRule" => false, "CSSNamespaceRule" => false, + "CSSNumericArray" => false, + "CSSNumericValue" => false, + "CSSPageDescriptors" => false, "CSSPageRule" => false, "CSSPerspective" => false, + "CSSPositionTryDescriptors" => false, + "CSSPositionTryRule" => false, + "CSSPositionValue" => false, + "CSSPropertyRule" => false, "CSSRotate" => false, "CSSRule" => false, "CSSRuleList" => false, "CSSScale" => false, + "CSSScopeRule" => false, "CSSSkew" => false, "CSSSkewX" => false, "CSSSkewY" => false, + "CSSStartingStyleRule" => false, "CSSStyleDeclaration" => false, "CSSStyleRule" => false, "CSSStyleSheet" => false, + "CSSStyleValue" => false, "CSSSupportsRule" => false, + "CSSTransformComponent" => false, "CSSTransformValue" => false, + "CSSTransition" => false, "CSSTranslate" => false, + "CSSUnitValue" => false, + "CSSUnparsedValue" => false, + "CSSVariableReferenceValue" => false, + "CSSViewTransitionRule" => false, "Cache" => false, "CacheStorage" => false, + "CanvasCaptureMediaStream" => false, "CanvasCaptureMediaStreamTrack" => false, "CanvasGradient" => false, "CanvasPattern" => false, "CanvasRenderingContext2D" => false, + "CaptureController" => false, + "CaretPosition" => false, "ChannelMergerNode" => false, "ChannelSplitterNode" => false, + "ChapterInformation" => false, + "CharacterBoundsUpdateEvent" => false, "CharacterData" => false, + "Clipboard" => false, "ClipboardEvent" => false, "ClipboardItem" => false, "CloseEvent" => false, + "CloseWatcher" => false, "Comment" => false, "CompositionEvent" => false, "CompressionStream" => false, "ConstantSourceNode" => false, + "ContentVisibilityAutoStateChangeEvent" => false, "ConvolverNode" => false, + "CookieChangeEvent" => false, + "CookieDeprecationLabel" => false, + "CookieStore" => false, + "CookieStoreManager" => false, "CountQueuingStrategy" => false, "Credential" => false, "CredentialsContainer" => false, + "CropTarget" => false, "Crypto" => false, "CryptoKey" => false, "CustomElementRegistry" => false, "CustomEvent" => false, + "CustomStateSet" => false, "DOMError" => false, "DOMException" => false, "DOMImplementation" => false, @@ -454,30 +532,115 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "DataTransferItemList" => false, "DecompressionStream" => false, "DelayNode" => false, + "DelegatedInkTrailPresenter" => false, "DeviceMotionEvent" => false, + "DeviceMotionEventAcceleration" => false, + "DeviceMotionEventRotationRate" => false, "DeviceOrientationEvent" => false, "Document" => false, "DocumentFragment" => false, + "DocumentPictureInPicture" => false, + "DocumentPictureInPictureEvent" => false, + "DocumentTimeline" => false, "DocumentType" => false, "DragEvent" => false, "DynamicsCompressorNode" => false, + "EditContext" => false, "Element" => false, + "ElementInternals" => false, + "EncodedAudioChunk" => false, + "EncodedVideoChunk" => false, "ErrorEvent" => false, "Event" => false, + "EventCounts" => false, "EventSource" => false, "EventTarget" => false, + "External" => false, + "EyeDropper" => false, + "FeaturePolicy" => false, + "FederatedCredential" => false, + "Fence" => false, + "FencedFrameConfig" => false, + "FetchLaterResult" => false, "File" => false, "FileList" => false, "FileReader" => false, + "FileSystem" => false, + "FileSystemDirectoryEntry" => false, + "FileSystemDirectoryHandle" => false, + "FileSystemDirectoryReader" => false, + "FileSystemEntry" => false, + "FileSystemFileEntry" => false, + "FileSystemFileHandle" => false, + "FileSystemHandle" => false, + "FileSystemWritableFileStream" => false, + "Float16Array" => false, "FocusEvent" => false, + "FontData" => false, "FontFace" => false, + "FontFaceSet" => false, "FontFaceSetLoadEvent" => false, "FormData" => false, "FormDataEvent" => false, + "FragmentDirective" => false, + "GPU" => false, + "GPUAdapter" => false, + "GPUAdapterInfo" => false, + "GPUBindGroup" => false, + "GPUBindGroupLayout" => false, + "GPUBuffer" => false, + "GPUBufferUsage" => false, + "GPUCanvasContext" => false, + "GPUColorWrite" => false, + "GPUCommandBuffer" => false, + "GPUCommandEncoder" => false, + "GPUCompilationInfo" => false, + "GPUCompilationMessage" => false, + "GPUComputePassEncoder" => false, + "GPUComputePipeline" => false, + "GPUDevice" => false, + "GPUDeviceLostInfo" => false, + "GPUError" => false, + "GPUExternalTexture" => false, + "GPUInternalError" => false, + "GPUMapMode" => false, + "GPUOutOfMemoryError" => false, + "GPUPipelineError" => false, + "GPUPipelineLayout" => false, + "GPUQuerySet" => false, + "GPUQueue" => false, + "GPURenderBundle" => false, + "GPURenderBundleEncoder" => false, + "GPURenderPassEncoder" => false, + "GPURenderPipeline" => false, + "GPUSampler" => false, + "GPUShaderModule" => false, + "GPUShaderStage" => false, + "GPUSupportedFeatures" => false, + "GPUSupportedLimits" => false, + "GPUTexture" => false, + "GPUTextureUsage" => false, + "GPUTextureView" => false, + "GPUUncapturedErrorEvent" => false, + "GPUValidationError" => false, "GainNode" => false, "Gamepad" => false, + "GamepadAxisMoveEvent" => false, "GamepadButton" => false, + "GamepadButtonEvent" => false, "GamepadEvent" => false, + "GamepadHapticActuator" => false, + "GamepadPose" => false, + "Geolocation" => false, + "GeolocationCoordinates" => false, + "GeolocationPosition" => false, + "GeolocationPositionError" => false, + "GravitySensor" => false, + "Gyroscope" => false, + "HID" => false, + "HIDConnectionEvent" => false, + "HIDDevice" => false, + "HIDInputReportEvent" => false, "HTMLAllCollection" => false, "HTMLAnchorElement" => false, "HTMLAreaElement" => false, @@ -488,7 +651,6 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "HTMLButtonElement" => false, "HTMLCanvasElement" => false, "HTMLCollection" => false, - "HTMLContentElement" => false, "HTMLDListElement" => false, "HTMLDataElement" => false, "HTMLDataListElement" => false, @@ -499,6 +661,7 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "HTMLDocument" => false, "HTMLElement" => false, "HTMLEmbedElement" => false, + "HTMLFencedFrameElement" => false, "HTMLFieldSetElement" => false, "HTMLFontElement" => false, "HTMLFormControlsCollection" => false, @@ -537,7 +700,6 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "HTMLQuoteElement" => false, "HTMLScriptElement" => false, "HTMLSelectElement" => false, - "HTMLShadowElement" => false, "HTMLSlotElement" => false, "HTMLSourceElement" => false, "HTMLSpanElement" => false, @@ -558,6 +720,8 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "HTMLVideoElement" => false, "HashChangeEvent" => false, "Headers" => false, + "Highlight" => false, + "HighlightRegistry" => false, "History" => false, "IDBCursor" => false, "IDBCursorWithValue" => false, @@ -571,20 +735,39 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "IDBTransaction" => false, "IDBVersionChangeEvent" => false, "IIRFilterNode" => false, + "IdentityCredential" => false, + "IdentityCredentialError" => false, + "IdentityProvider" => false, "IdleDeadline" => false, + "IdleDetector" => false, "Image" => false, "ImageBitmap" => false, "ImageBitmapRenderingContext" => false, "ImageCapture" => false, "ImageData" => false, + "ImageDecoder" => false, + "ImageTrack" => false, + "ImageTrackList" => false, + "Ink" => false, + "InputDeviceCapabilities" => false, + "InputDeviceInfo" => false, "InputEvent" => false, "IntersectionObserver" => false, "IntersectionObserverEntry" => false, - "Intl" => false, + "Iterator" => false, + "Keyboard" => false, "KeyboardEvent" => false, + "KeyboardLayoutMap" => false, "KeyframeEffect" => false, - "KeyframeEffectReadOnly" => false, + "LargestContentfulPaint" => false, + "LaunchParams" => false, + "LaunchQueue" => false, + "LayoutShift" => false, + "LayoutShiftAttribution" => false, + "LinearAccelerationSensor" => false, "Location" => false, + "Lock" => false, + "LockManager" => false, "MIDIAccess" => false, "MIDIConnectionEvent" => false, "MIDIInput" => false, @@ -593,64 +776,100 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "MIDIOutput" => false, "MIDIOutputMap" => false, "MIDIPort" => false, + "MathMLElement" => false, + "MediaCapabilities" => false, + "MediaCapabilitiesInfo" => false, "MediaDeviceInfo" => false, "MediaDevices" => false, "MediaElementAudioSourceNode" => false, "MediaEncryptedEvent" => false, "MediaError" => false, + "MediaKeyError" => false, "MediaKeyMessageEvent" => false, "MediaKeySession" => false, "MediaKeyStatusMap" => false, "MediaKeySystemAccess" => false, + "MediaKeys" => false, "MediaList" => false, "MediaMetadata" => false, "MediaQueryList" => false, "MediaQueryListEvent" => false, "MediaRecorder" => false, - "MediaSettingsRange" => false, + "MediaRecorderErrorEvent" => false, + "MediaSession" => false, "MediaSource" => false, + "MediaSourceHandle" => false, "MediaStream" => false, "MediaStreamAudioDestinationNode" => false, "MediaStreamAudioSourceNode" => false, - "MediaStreamConstraints" => false, "MediaStreamEvent" => false, "MediaStreamTrack" => false, + "MediaStreamTrackAudioSourceNode" => false, + "MediaStreamTrackAudioStats" => false, "MediaStreamTrackEvent" => false, + "MediaStreamTrackGenerator" => false, + "MediaStreamTrackProcessor" => false, + "MediaStreamTrackVideoStats" => false, "MessageChannel" => false, "MessageEvent" => false, "MessagePort" => false, "MimeType" => false, "MimeTypeArray" => false, + "ModelGenericSession" => false, + "ModelManager" => false, "MouseEvent" => false, "MutationEvent" => false, "MutationObserver" => false, "MutationRecord" => false, "NamedNodeMap" => false, + "NavigateEvent" => false, + "Navigation" => false, + "NavigationActivation" => false, + "NavigationCurrentEntryChangeEvent" => false, + "NavigationDestination" => false, + "NavigationHistoryEntry" => false, "NavigationPreloadManager" => false, + "NavigationTransition" => false, "Navigator" => false, + "NavigatorLogin" => false, + "NavigatorManagedData" => false, "NavigatorUAData" => false, "NetworkInformation" => false, "Node" => false, "NodeFilter" => false, "NodeIterator" => false, "NodeList" => false, + "NotRestoredReasonDetails" => false, + "NotRestoredReasons" => false, "Notification" => false, + "NotifyPaintEvent" => false, + "OTPCredential" => false, "OfflineAudioCompletionEvent" => false, "OfflineAudioContext" => false, - "OffscreenCanvas" => true, + "OffscreenCanvas" => false, "OffscreenCanvasRenderingContext2D" => false, "Option" => false, + "OrientationSensor" => false, "OscillatorNode" => false, "OverconstrainedError" => false, + "PERSISTENT" => false, + "PageRevealEvent" => false, + "PageSwapEvent" => false, "PageTransitionEvent" => false, "PannerNode" => false, + "PasswordCredential" => false, "Path2D" => false, "PaymentAddress" => false, + "PaymentManager" => false, + "PaymentMethodChangeEvent" => false, "PaymentRequest" => false, "PaymentRequestUpdateEvent" => false, "PaymentResponse" => false, "Performance" => false, + "PerformanceElementTiming" => false, "PerformanceEntry" => false, + "PerformanceEventTiming" => false, + "PerformanceLongAnimationFrameTiming" => false, "PerformanceLongTaskTiming" => false, "PerformanceMark" => false, "PerformanceMeasure" => false, @@ -660,11 +879,15 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "PerformanceObserverEntryList" => false, "PerformancePaintTiming" => false, "PerformanceResourceTiming" => false, + "PerformanceScriptTiming" => false, + "PerformanceServerTiming" => false, "PerformanceTiming" => false, + "PeriodicSyncManager" => false, "PeriodicWave" => false, "PermissionStatus" => false, "Permissions" => false, - "PhotoCapabilities" => false, + "PictureInPictureEvent" => false, + "PictureInPictureWindow" => false, "Plugin" => false, "PluginArray" => false, "PointerEvent" => false, @@ -677,24 +900,36 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "PresentationConnectionList" => false, "PresentationReceiver" => false, "PresentationRequest" => false, + "PressureObserver" => false, + "PressureRecord" => false, "ProcessingInstruction" => false, + "Profiler" => false, "ProgressEvent" => false, "PromiseRejectionEvent" => false, + "ProtectedAudience" => false, + "PublicKeyCredential" => false, "PushManager" => false, "PushSubscription" => false, "PushSubscriptionOptions" => false, "RTCCertificate" => false, + "RTCDTMFSender" => false, + "RTCDTMFToneChangeEvent" => false, "RTCDataChannel" => false, "RTCDataChannelEvent" => false, "RTCDtlsTransport" => false, + "RTCEncodedAudioFrame" => false, + "RTCEncodedVideoFrame" => false, + "RTCError" => false, + "RTCErrorEvent" => false, "RTCIceCandidate" => false, - "RTCIceGatherer" => false, "RTCIceTransport" => false, "RTCPeerConnection" => false, + "RTCPeerConnectionIceErrorEvent" => false, "RTCPeerConnectionIceEvent" => false, - "RTCRtpContributingSource" => false, "RTCRtpReceiver" => false, + "RTCRtpScriptTransform" => false, "RTCRtpSender" => false, + "RTCRtpTransceiver" => false, "RTCSctpTransport" => false, "RTCSessionDescription" => false, "RTCStatsReport" => false, @@ -707,10 +942,13 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "ReadableStreamBYOBRequest" => false, "ReadableStreamDefaultController" => false, "ReadableStreamDefaultReader" => false, + "RelativeOrientationSensor" => false, "RemotePlayback" => false, + "ReportingObserver" => false, "Request" => false, "ResizeObserver" => false, "ResizeObserverEntry" => false, + "ResizeObserverSize" => false, "Response" => false, "SVGAElement" => false, "SVGAngle" => false, @@ -735,7 +973,6 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "SVGComponentTransferFunctionElement" => false, "SVGDefsElement" => false, "SVGDescElement" => false, - "SVGDiscardElement" => false, "SVGElement" => false, "SVGEllipseElement" => false, "SVGFEBlendElement" => false, @@ -810,41 +1047,69 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "SVGUnitTypes" => false, "SVGUseElement" => false, "SVGViewElement" => false, + "Scheduler" => false, + "Scheduling" => false, "Screen" => false, + "ScreenDetailed" => false, + "ScreenDetails" => false, "ScreenOrientation" => false, "ScriptProcessorNode" => false, + "ScrollTimeline" => false, "SecurityPolicyViolationEvent" => false, "Selection" => false, + "Sensor" => false, + "SensorErrorEvent" => false, + "Serial" => false, + "SerialPort" => false, "ServiceWorker" => false, "ServiceWorkerContainer" => false, "ServiceWorkerRegistration" => false, "ShadowRoot" => false, + "SharedStorage" => false, + "SharedStorageWorklet" => false, "SharedWorker" => false, + "SnapEvent" => false, "SourceBuffer" => false, "SourceBufferList" => false, + "SpeechSynthesis" => false, + "SpeechSynthesisErrorEvent" => false, "SpeechSynthesisEvent" => false, "SpeechSynthesisUtterance" => false, + "SpeechSynthesisVoice" => false, "StaticRange" => false, "StereoPannerNode" => false, "Storage" => false, + "StorageBucket" => false, + "StorageBucketManager" => false, "StorageEvent" => false, "StorageManager" => false, + "StylePropertyMap" => false, + "StylePropertyMapReadOnly" => false, "StyleSheet" => false, "StyleSheetList" => false, "SubmitEvent" => false, "SubtleCrypto" => false, + "SyncManager" => false, + "TEMPORARY" => false, "TaskAttributionTiming" => false, + "TaskController" => false, + "TaskPriorityChangeEvent" => false, + "TaskSignal" => false, "Text" => false, "TextDecoder" => false, "TextDecoderStream" => false, "TextEncoder" => false, "TextEncoderStream" => false, "TextEvent" => false, + "TextFormat" => false, + "TextFormatUpdateEvent" => false, "TextMetrics" => false, "TextTrack" => false, "TextTrackCue" => false, "TextTrackCueList" => false, "TextTrackList" => false, + "TextUpdateEvent" => false, + "TimeEvent" => false, "TimeRanges" => false, "ToggleEvent" => false, "Touch" => false, @@ -855,12 +1120,47 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "TransformStreamDefaultController" => false, "TransitionEvent" => false, "TreeWalker" => false, + "TrustedHTML" => false, + "TrustedScript" => false, + "TrustedScriptURL" => false, + "TrustedTypePolicy" => false, + "TrustedTypePolicyFactory" => false, "UIEvent" => false, "URL" => false, + "URLPattern" => false, "URLSearchParams" => false, + "USB" => false, + "USBAlternateInterface" => false, + "USBConfiguration" => false, + "USBConnectionEvent" => false, + "USBDevice" => false, + "USBEndpoint" => false, + "USBInTransferResult" => false, + "USBInterface" => false, + "USBIsochronousInTransferPacket" => false, + "USBIsochronousInTransferResult" => false, + "USBIsochronousOutTransferPacket" => false, + "USBIsochronousOutTransferResult" => false, + "USBOutTransferResult" => false, + "UserActivation" => false, "VTTCue" => false, + "VTTRegion" => false, "ValidityState" => false, + "VideoColorSpace" => false, + "VideoDecoder" => false, + "VideoEncoder" => false, + "VideoFrame" => false, + "VideoPlaybackQuality" => false, + "ViewTimeline" => false, + "ViewTransition" => false, + "ViewTransitionTypeSet" => false, + "VirtualKeyboard" => false, + "VirtualKeyboardGeometryChangeEvent" => false, + "VisibilityStateEntry" => false, "VisualViewport" => false, + "WGSLLanguageFeatures" => false, + "WakeLock" => false, + "WakeLockSentinel" => false, "WaveShaperNode" => false, "WebAssembly" => false, "WebGL2RenderingContext" => false, @@ -868,6 +1168,7 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "WebGLBuffer" => false, "WebGLContextEvent" => false, "WebGLFramebuffer" => false, + "WebGLObject" => false, "WebGLProgram" => false, "WebGLQuery" => false, "WebGLRenderbuffer" => false, @@ -881,9 +1182,21 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "WebGLUniformLocation" => false, "WebGLVertexArrayObject" => false, "WebSocket" => false, + "WebSocketError" => false, + "WebSocketStream" => false, + "WebTransport" => false, + "WebTransportBidirectionalStream" => false, + "WebTransportDatagramDuplexStream" => false, + "WebTransportError" => false, + "WebTransportReceiveStream" => false, + "WebTransportSendStream" => false, "WheelEvent" => false, "Window" => false, + "WindowControlsOverlay" => false, + "WindowControlsOverlayGeometryChangeEvent" => false, "Worker" => false, + "Worklet" => false, + "WorkletGlobalScope" => false, "WritableStream" => false, "WritableStreamDefaultController" => false, "WritableStreamDefaultWriter" => false, @@ -896,15 +1209,24 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "XPathExpression" => false, "XPathResult" => false, "XRAnchor" => false, + "XRAnchorSet" => false, "XRBoundedReferenceSpace" => false, "XRCPUDepthInformation" => false, + "XRCamera" => false, + "XRDOMOverlayState" => false, "XRDepthInformation" => false, "XRFrame" => false, + "XRHitTestResult" => false, + "XRHitTestSource" => false, "XRInputSource" => false, "XRInputSourceArray" => false, "XRInputSourceEvent" => false, "XRInputSourcesChangeEvent" => false, + "XRLayer" => false, + "XRLightEstimate" => false, + "XRLightProbe" => false, "XRPose" => false, + "XRRay" => false, "XRReferenceSpace" => false, "XRReferenceSpaceEvent" => false, "XRRenderState" => false, @@ -913,6 +1235,8 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "XRSessionEvent" => false, "XRSpace" => false, "XRSystem" => false, + "XRTransientInputHitTestResult" => false, + "XRTransientInputHitTestSource" => false, "XRView" => false, "XRViewerPose" => false, "XRViewport" => false, @@ -921,8 +1245,8 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "XRWebGLLayer" => false, "XSLTProcessor" => false, "addEventListener" => false, + "ai" => false, "alert" => false, - "applicationCache" => false, "atob" => false, "blur" => false, "btoa" => false, @@ -936,49 +1260,64 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "closed" => false, "confirm" => false, "console" => false, + "cookieStore" => false, "createImageBitmap" => false, + "credentialless" => false, + "crossOriginIsolated" => false, "crypto" => false, + "currentFrame" => false, + "currentTime" => false, "customElements" => false, - "defaultStatus" => false, - "defaultstatus" => false, "devicePixelRatio" => false, "dispatchEvent" => false, "document" => false, + "documentPictureInPicture" => false, "event" => false, "external" => false, + "fence" => false, "fetch" => false, + "fetchLater" => false, "find" => false, "focus" => false, "frameElement" => false, "frames" => false, "getComputedStyle" => false, + "getScreenDetails" => false, "getSelection" => false, "history" => false, "indexedDB" => false, "innerHeight" => false, "innerWidth" => false, "isSecureContext" => false, + "launchQueue" => false, "length" => false, "localStorage" => false, "location" => true, "locationbar" => false, "matchMedia" => false, "menubar" => false, + "model" => false, "moveBy" => false, "moveTo" => false, "name" => false, + "navigation" => false, "navigator" => false, "offscreenBuffering" => false, "onabort" => true, "onafterprint" => true, + "onanimationcancel" => true, "onanimationend" => true, "onanimationiteration" => true, "onanimationstart" => true, "onappinstalled" => true, "onauxclick" => true, + "onbeforeinput" => true, "onbeforeinstallprompt" => true, + "onbeforematch" => true, "onbeforeprint" => true, + "onbeforetoggle" => true, "onbeforeunload" => true, + "onbeforexrselect" => true, "onblur" => true, "oncancel" => true, "oncanplay" => true, @@ -986,8 +1325,13 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "onchange" => true, "onclick" => true, "onclose" => true, + "oncontentvisibilityautostatechange" => true, + "oncontextlost" => true, "oncontextmenu" => true, + "oncontextrestored" => true, + "oncopy" => true, "oncuechange" => true, + "oncut" => true, "ondblclick" => true, "ondevicemotion" => true, "ondeviceorientation" => true, @@ -1004,6 +1348,9 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "onended" => true, "onerror" => true, "onfocus" => true, + "onformdata" => true, + "ongamepadconnected" => true, + "ongamepaddisconnected" => true, "ongotpointercapture" => true, "onhashchange" => true, "oninput" => true, @@ -1030,7 +1377,10 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "onoffline" => true, "ononline" => true, "onpagehide" => true, + "onpagereveal" => true, "onpageshow" => true, + "onpageswap" => true, + "onpaste" => true, "onpause" => true, "onplay" => true, "onplaying" => true, @@ -1041,6 +1391,7 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "onpointermove" => true, "onpointerout" => true, "onpointerover" => true, + "onpointerrawupdate" => true, "onpointerup" => true, "onpopstate" => true, "onprogress" => true, @@ -1049,26 +1400,36 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "onreset" => true, "onresize" => true, "onscroll" => true, + "onscrollend" => true, + "onscrollsnapchange" => true, + "onscrollsnapchanging" => true, "onsearch" => true, + "onsecuritypolicyviolation" => true, "onseeked" => true, "onseeking" => true, "onselect" => true, + "onselectionchange" => true, + "onselectstart" => true, + "onslotchange" => true, "onstalled" => true, "onstorage" => true, "onsubmit" => true, "onsuspend" => true, "ontimeupdate" => true, "ontoggle" => true, + "ontransitioncancel" => true, "ontransitionend" => true, + "ontransitionrun" => true, + "ontransitionstart" => true, "onunhandledrejection" => true, "onunload" => true, "onvolumechange" => true, "onwaiting" => true, "onwheel" => true, "open" => false, - "openDatabase" => false, "opener" => false, "origin" => false, + "originAgentCluster" => false, "outerHeight" => false, "outerWidth" => false, "pageXOffset" => false, @@ -1079,6 +1440,7 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "postMessage" => false, "print" => false, "prompt" => false, + "queryLocalFonts" => false, "queueMicrotask" => false, "registerProcessor" => false, "removeEventListener" => false, @@ -1087,6 +1449,8 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "requestIdleCallback" => false, "resizeBy" => false, "resizeTo" => false, + "sampleRate" => false, + "scheduler" => false, "screen" => false, "screenLeft" => false, "screenTop" => false, @@ -1102,6 +1466,10 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "sessionStorage" => false, "setInterval" => false, "setTimeout" => false, + "sharedStorage" => false, + "showDirectoryPicker" => false, + "showOpenFilePicker" => false, + "showSaveFilePicker" => false, "speechSynthesis" => false, "status" => false, "statusbar" => false, @@ -1110,6 +1478,7 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "styleMedia" => false, "toolbar" => false, "top" => false, + "trustedTypes" => false, "visualViewport" => false, "window" => false, }, @@ -1132,10 +1501,12 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "File" => false, "FormData" => false, "Headers" => false, - "Intl" => false, + "Iterator" => false, "MessageChannel" => false, "MessageEvent" => false, "MessagePort" => false, + "Navigator" => false, + "Performance" => false, "PerformanceEntry" => false, "PerformanceMark" => false, "PerformanceMeasure" => false, @@ -1160,6 +1531,7 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "URL" => false, "URLSearchParams" => false, "WebAssembly" => false, + "WebSocket" => false, "WritableStream" => false, "WritableStreamDefaultController" => false, "WritableStreamDefaultWriter" => false, @@ -1176,6 +1548,7 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "fetch" => false, "global" => false, "module" => false, + "navigator" => false, "performance" => false, "process" => false, "queueMicrotask" => false, @@ -1203,10 +1576,12 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "File" => false, "FormData" => false, "Headers" => false, - "Intl" => false, + "Iterator" => false, "MessageChannel" => false, "MessageEvent" => false, "MessagePort" => false, + "Navigator" => false, + "Performance" => false, "PerformanceEntry" => false, "PerformanceMark" => false, "PerformanceMeasure" => false, @@ -1231,6 +1606,7 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "URL" => false, "URLSearchParams" => false, "WebAssembly" => false, + "WebSocket" => false, "WritableStream" => false, "WritableStreamDefaultController" => false, "WritableStreamDefaultWriter" => false, @@ -1241,6 +1617,7 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "console" => false, "crypto" => false, "fetch" => false, + "navigator" => false, "performance" => false, "queueMicrotask" => false, "setInterval" => false, @@ -1248,21 +1625,99 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "structuredClone" => false, }, "worker" => phf_map! { + "AbortController" => false, + "AbortSignal" => false, + "AudioData" => false, + "AudioDecoder" => false, + "AudioEncoder" => false, + "BackgroundFetchManager" => false, + "BackgroundFetchRecord" => false, + "BackgroundFetchRegistration" => false, + "BarcodeDetector" => false, "Blob" => false, "BroadcastChannel" => false, "ByteLengthQueuingStrategy" => false, + "CSSSkewX" => false, + "CSSSkewY" => false, "Cache" => false, + "CacheStorage" => false, + "CanvasGradient" => false, + "CanvasPattern" => false, + "CloseEvent" => false, "CompressionStream" => false, "CountQueuingStrategy" => false, + "CropTarget" => false, "Crypto" => false, "CryptoKey" => false, "CustomEvent" => false, + "DOMException" => false, + "DOMMatrix" => false, + "DOMMatrixReadOnly" => false, + "DOMPoint" => false, + "DOMPointReadOnly" => false, + "DOMQuad" => false, + "DOMRect" => false, + "DOMRectReadOnly" => false, + "DOMStringList" => false, "DecompressionStream" => false, + "DedicatedWorkerGlobalScope" => false, + "EncodedAudioChunk" => false, + "EncodedVideoChunk" => false, "ErrorEvent" => false, "Event" => false, + "EventSource" => false, + "EventTarget" => false, "File" => false, + "FileList" => false, + "FileReader" => false, "FileReaderSync" => false, + "FileSystemDirectoryHandle" => false, + "FileSystemFileHandle" => false, + "FileSystemHandle" => false, + "FileSystemSyncAccessHandle" => false, + "FileSystemWritableFileStream" => false, + "FontFace" => false, "FormData" => false, + "GPU" => false, + "GPUAdapter" => false, + "GPUAdapterInfo" => false, + "GPUBindGroup" => false, + "GPUBindGroupLayout" => false, + "GPUBuffer" => false, + "GPUBufferUsage" => false, + "GPUCanvasContext" => false, + "GPUColorWrite" => false, + "GPUCommandBuffer" => false, + "GPUCommandEncoder" => false, + "GPUCompilationInfo" => false, + "GPUCompilationMessage" => false, + "GPUComputePassEncoder" => false, + "GPUComputePipeline" => false, + "GPUDevice" => false, + "GPUDeviceLostInfo" => false, + "GPUError" => false, + "GPUExternalTexture" => false, + "GPUInternalError" => false, + "GPUMapMode" => false, + "GPUOutOfMemoryError" => false, + "GPUPipelineError" => false, + "GPUPipelineLayout" => false, + "GPUQuerySet" => false, + "GPUQueue" => false, + "GPURenderBundle" => false, + "GPURenderBundleEncoder" => false, + "GPURenderPassEncoder" => false, + "GPURenderPipeline" => false, + "GPUSampler" => false, + "GPUShaderModule" => false, + "GPUShaderStage" => false, + "GPUSupportedFeatures" => false, + "GPUSupportedLimits" => false, + "GPUTexture" => false, + "GPUTextureUsage" => false, + "GPUTextureView" => false, + "GPUUncapturedErrorEvent" => false, + "GPUValidationError" => false, "Headers" => false, "IDBCursor" => false, "IDBCursorWithValue" => false, @@ -1275,80 +1730,190 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "IDBRequest" => false, "IDBTransaction" => false, "IDBVersionChangeEvent" => false, + "IdleDetector" => false, + "ImageBitmap" => false, + "ImageBitmapRenderingContext" => false, "ImageData" => false, + "ImageDecoder" => false, + "ImageTrack" => false, + "ImageTrackList" => false, + "Iterator" => false, + "Lock" => false, + "LockManager" => false, + "MediaCapabilities" => false, + "MediaSource" => false, + "MediaSourceHandle" => false, "MessageChannel" => false, "MessageEvent" => false, "MessagePort" => false, + "NavigationPreloadManager" => false, + "NavigatorUAData" => false, + "NetworkInformation" => false, "Notification" => false, + "OffscreenCanvas" => false, + "OffscreenCanvasRenderingContext2D" => false, + "PERSISTENT" => false, + "Path2D" => false, "Performance" => false, "PerformanceEntry" => false, "PerformanceMark" => false, "PerformanceMeasure" => false, - "PerformanceNavigation" => false, "PerformanceObserver" => false, "PerformanceObserverEntryList" => false, "PerformanceResourceTiming" => false, - "PerformanceTiming" => false, - "Promise" => false, + "PerformanceServerTiming" => false, + "PeriodicSyncManager" => false, + "PermissionStatus" => false, + "Permissions" => false, + "PressureObserver" => false, + "PressureRecord" => false, + "ProgressEvent" => false, + "PromiseRejectionEvent" => false, + "PushManager" => false, + "PushSubscription" => false, + "PushSubscriptionOptions" => false, + "RTCEncodedAudioFrame" => false, + "RTCEncodedVideoFrame" => false, "ReadableByteStreamController" => false, "ReadableStream" => false, "ReadableStreamBYOBReader" => false, "ReadableStreamBYOBRequest" => false, "ReadableStreamDefaultController" => false, "ReadableStreamDefaultReader" => false, + "ReportingObserver" => false, "Request" => false, "Response" => false, + "Scheduler" => false, + "SecurityPolicyViolationEvent" => false, + "Serial" => false, + "SerialPort" => false, "ServiceWorkerRegistration" => false, + "SourceBuffer" => false, + "SourceBufferList" => false, + "StorageBucket" => false, + "StorageBucketManager" => false, + "StorageManager" => false, "SubtleCrypto" => false, + "SyncManager" => false, + "TEMPORARY" => false, + "TaskController" => false, + "TaskPriorityChangeEvent" => false, + "TaskSignal" => false, "TextDecoder" => false, "TextDecoderStream" => false, "TextEncoder" => false, "TextEncoderStream" => false, + "TextMetrics" => false, "TransformStream" => false, "TransformStreamDefaultController" => false, + "TrustedHTML" => false, + "TrustedScript" => false, + "TrustedScriptURL" => false, + "TrustedTypePolicy" => false, + "TrustedTypePolicyFactory" => false, "URL" => false, + "URLPattern" => false, "URLSearchParams" => false, + "USB" => false, + "USBAlternateInterface" => false, + "USBConfiguration" => false, + "USBConnectionEvent" => false, + "USBDevice" => false, + "USBEndpoint" => false, + "USBInTransferResult" => false, + "USBInterface" => false, + "USBIsochronousInTransferPacket" => false, + "USBIsochronousInTransferResult" => false, + "USBIsochronousOutTransferPacket" => false, + "USBIsochronousOutTransferResult" => false, + "USBOutTransferResult" => false, + "UserActivation" => false, + "VideoColorSpace" => false, + "VideoDecoder" => false, + "VideoEncoder" => false, + "VideoFrame" => false, + "WGSLLanguageFeatures" => false, "WebAssembly" => false, + "WebGL2RenderingContext" => false, + "WebGLActiveInfo" => false, + "WebGLBuffer" => false, + "WebGLContextEvent" => false, + "WebGLFramebuffer" => false, + "WebGLObject" => false, + "WebGLProgram" => false, + "WebGLQuery" => false, + "WebGLRenderbuffer" => false, + "WebGLRenderingContext" => false, + "WebGLSampler" => false, + "WebGLShader" => false, + "WebGLShaderPrecisionFormat" => false, + "WebGLSync" => false, + "WebGLTexture" => false, + "WebGLTransformFeedback" => false, + "WebGLUniformLocation" => false, + "WebGLVertexArrayObject" => false, "WebSocket" => false, + "WebSocketError" => false, + "WebSocketStream" => false, + "WebTransport" => false, + "WebTransportBidirectionalStream" => false, + "WebTransportDatagramDuplexStream" => false, + "WebTransportError" => false, "Worker" => false, "WorkerGlobalScope" => false, + "WorkerLocation" => false, + "WorkerNavigator" => false, "WritableStream" => false, "WritableStreamDefaultController" => false, "WritableStreamDefaultWriter" => false, "XMLHttpRequest" => false, + "XMLHttpRequestEventTarget" => false, + "XMLHttpRequestUpload" => false, "addEventListener" => false, - "applicationCache" => false, + "ai" => false, "atob" => false, "btoa" => false, "caches" => false, + "cancelAnimationFrame" => false, "clearInterval" => false, "clearTimeout" => false, - "close" => true, + "close" => false, "console" => false, + "createImageBitmap" => false, + "crossOriginIsolated" => false, "crypto" => false, + "dispatchEvent" => false, "fetch" => false, - "importScripts" => true, + "fonts" => false, + "importScripts" => false, "indexedDB" => false, + "isSecureContext" => false, "location" => false, "name" => false, "navigator" => false, - "onclose" => true, - "onconnect" => true, "onerror" => true, "onlanguagechange" => true, "onmessage" => true, - "onoffline" => true, - "ononline" => true, + "onmessageerror" => true, "onrejectionhandled" => true, "onunhandledrejection" => true, + "origin" => false, "performance" => false, - "postMessage" => true, + "postMessage" => false, "queueMicrotask" => false, "removeEventListener" => false, "reportError" => false, - "self" => true, + "requestAnimationFrame" => false, + "scheduler" => false, + "self" => false, "setInterval" => false, "setTimeout" => false, + "structuredClone" => false, + "trustedTypes" => false, + "webkitRequestFileSystem" => false, + "webkitRequestFileSystemSync" => false, + "webkitResolveLocalFileSystemSyncURL" => false, + "webkitResolveLocalFileSystemURL" => false, }, "serviceworker" => phf_map! { "Blob" => false, @@ -1398,7 +1963,6 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "PerformanceObserverEntryList" => false, "PerformanceResourceTiming" => false, "PerformanceTiming" => false, - "Promise" => false, "ReadableByteStreamController" => false, "ReadableStream" => false, "ReadableStreamBYOBReader" => false, @@ -1536,12 +2100,9 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "beforeEach" => false, "describe" => false, "expect" => false, - "fdescribe" => false, "fit" => false, "it" => false, "jest" => false, - "pit" => false, - "require" => false, "test" => false, "xdescribe" => false, "xit" => false, @@ -1620,6 +2181,7 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "Try" => false, }, "shelljs" => phf_map! { + "ShellString" => false, "cat" => false, "cd" => false, "chmod" => false, @@ -1633,6 +2195,7 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "exit" => false, "find" => false, "grep" => false, + "head" => false, "ln" => false, "ls" => false, "mkdir" => false, @@ -1643,10 +2206,12 @@ pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { "rm" => false, "sed" => false, "set" => false, - "target" => false, + "sort" => false, + "tail" => false, "tempdir" => false, "test" => false, "touch" => false, + "uniq" => false, "which" => false, }, "meteor" => phf_map! { diff --git a/crates/oxc_linter/src/rules/eslint/no_undef.rs b/crates/oxc_linter/src/rules/eslint/no_undef.rs index b2acc94262b75..959521a1fbb84 100644 --- a/crates/oxc_linter/src/rules/eslint/no_undef.rs +++ b/crates/oxc_linter/src/rules/eslint/no_undef.rs @@ -96,8 +96,6 @@ fn test() { // "/*eslint-env browser*/ window;", // "/*eslint-env node*/ require(\"a\");", "Object; isNaN();", - "toString()", - "hasOwnProperty()", "function evilEval(stuffToEval) { var ultimateAnswer; ultimateAnswer = 42; eval(stuffToEval); }", "typeof a", "typeof (a)", @@ -184,6 +182,8 @@ fn test() { "class C { static { let a; } [a]; }", "class C { static { function a() {} } [a]; }", "class C { static { var a; } } a;", + "toString()", + "hasOwnProperty()", ]; Tester::new(NoUndef::NAME, pass, fail).test_and_snapshot(); diff --git a/crates/oxc_linter/src/snapshots/no_undef.snap b/crates/oxc_linter/src/snapshots/no_undef.snap index a39f570593d8e..ab1fd2134de64 100644 --- a/crates/oxc_linter/src/snapshots/no_undef.snap +++ b/crates/oxc_linter/src/snapshots/no_undef.snap @@ -156,3 +156,15 @@ source: crates/oxc_linter/src/tester.rs 1 │ class C { static { var a; } } a; · ─ ╰──── + + ⚠ eslint(no-undef): 'toString' is not defined. + ╭─[no_undef.tsx:1:1] + 1 │ toString() + · ──────── + ╰──── + + ⚠ eslint(no-undef): 'hasOwnProperty' is not defined. + ╭─[no_undef.tsx:1:1] + 1 │ hasOwnProperty() + · ────────────── + ╰──── diff --git a/tasks/javascript_globals/template.hbs b/tasks/javascript_globals/template.hbs index 55463e99311aa..5f17e8a577d6e 100644 --- a/tasks/javascript_globals/template.hbs +++ b/tasks/javascript_globals/template.hbs @@ -1,6 +1,9 @@ +// Auto-generated code, DO NOT EDIT DIRECTLY! +// To edit this generated file you have to run `cargo run -p javascript_globals`. + use phf::{phf_map, Map}; -pub static ENVIRONMENTS: Map<&'static str, Map<&'static str, bool>> = phf_map! { +pub static GLOBALS: Map<&'static str, Map<&'static str, bool>> = phf_map! { {{#each envs }} "{{name}}" => phf_map! { {{#each vars}}