From 3c74fcef6aae1d37e47383f35276270ae6ae2715 Mon Sep 17 00:00:00 2001 From: Yury Shapkarin Date: Mon, 6 Jul 2020 01:41:22 +0300 Subject: [PATCH] fix get-browser-globals.js script to pass the alphabetical order test closes #166 --- get-browser-globals.js | 2 +- globals.json | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/get-browser-globals.js b/get-browser-globals.js index 73d849a..8be2304 100644 --- a/get-browser-globals.js +++ b/get-browser-globals.js @@ -43,7 +43,7 @@ const blacklist = [ ]; const globals = Object.getOwnPropertyNames(window) - .sort((a, b) => a.toLowerCase().localeCompare(b.toLowerCase())) + .sort((a, b) => a.localeCompare(b)) .filter(global => { for (const pattern of blacklist) { if (typeof pattern === 'string') { diff --git a/globals.json b/globals.json index b36d991..2e66ee1 100644 --- a/globals.json +++ b/globals.json @@ -315,8 +315,8 @@ "createImageBitmap": false, "Credential": false, "CredentialsContainer": false, - "Crypto": false, "crypto": false, + "Crypto": false, "CryptoKey": false, "CSS": false, "CSSConditionRule": false, @@ -371,8 +371,8 @@ "decodeURI": false, "decodeURIComponent": false, "DecompressionStream": false, - "defaultStatus": false, "defaultstatus": false, + "defaultStatus": false, "DelayNode": false, "DeviceMotionEvent": false, "DeviceMotionEventAcceleration": false, @@ -380,8 +380,8 @@ "DeviceOrientationEvent": false, "devicePixelRatio": false, "disableTextSelectAndDrag": false, - "Document": false, "document": false, + "Document": false, "DocumentFragment": false, "DocumentType": false, "DOMError": false, @@ -413,12 +413,12 @@ "escape": false, "eval": false, "EvalError": false, - "Event": false, "event": false, + "Event": false, "EventSource": false, "EventTarget": false, - "External": false, "external": false, + "External": false, "FeaturePolicy": false, "FederatedCredential": false, "fetch": false, @@ -459,8 +459,8 @@ "HashChangeEvent": false, "hasKeyModifiers": false, "Headers": false, - "History": false, "history": false, + "History": false, "HTMLAllCollection": false, "HTMLAnchorElement": false, "HTMLAreaElement": false, @@ -587,8 +587,8 @@ "LinearAccelerationSensor": false, "listenOnce": false, "localStorage": false, - "Location": false, "location": false, + "Location": false, "locationbar": false, "Lock": false, "LockManager": false, @@ -644,8 +644,8 @@ "NamedNodeMap": false, "NaN": false, "NavigationPreloadManager": false, - "Navigator": false, "navigator": false, + "Navigator": false, "NetworkInformation": false, "Node": false, "NodeFilter": false, @@ -789,8 +789,8 @@ "PaymentRequest": false, "PaymentRequestUpdateEvent": false, "PaymentResponse": false, - "Performance": false, "performance": false, + "Performance": false, "PerformanceElementTiming": false, "PerformanceEntry": false, "PerformanceEventTiming": false, @@ -878,8 +878,8 @@ "RTCSessionDescription": false, "RTCStatsReport": false, "RTCTrackEvent": false, - "Screen": false, "screen": false, + "Screen": false, "screenLeft": false, "ScreenOrientation": false, "screenTop": false, @@ -1075,8 +1075,8 @@ "UserActivation": false, "ValidityState": false, "VideoPlaybackQuality": false, - "VisualViewport": false, "visualViewport": false, + "VisualViewport": false, "VTTCue": false, "WaveShaperNode": false, "WeakMap": false, @@ -1102,8 +1102,8 @@ "WebSocket": false, "WebUIListener": false, "WheelEvent": false, - "Window": false, "window": false, + "Window": false, "Worker": false, "Worklet": false, "WritableStream": false,