Skip to content

Commit

Permalink
fix get-browser-globals.js script to pass the alphabetical order test c…
Browse files Browse the repository at this point in the history
  • Loading branch information
Yury Shapkarin committed Jul 5, 2020
1 parent 0924a14 commit 3c74fce
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion get-browser-globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down
24 changes: 12 additions & 12 deletions globals.json
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,8 @@
"createImageBitmap": false,
"Credential": false,
"CredentialsContainer": false,
"Crypto": false,
"crypto": false,
"Crypto": false,
"CryptoKey": false,
"CSS": false,
"CSSConditionRule": false,
Expand Down Expand Up @@ -371,17 +371,17 @@
"decodeURI": false,
"decodeURIComponent": false,
"DecompressionStream": false,
"defaultStatus": false,
"defaultstatus": false,
"defaultStatus": false,
"DelayNode": false,
"DeviceMotionEvent": false,
"DeviceMotionEventAcceleration": false,
"DeviceMotionEventRotationRate": false,
"DeviceOrientationEvent": false,
"devicePixelRatio": false,
"disableTextSelectAndDrag": false,
"Document": false,
"document": false,
"Document": false,
"DocumentFragment": false,
"DocumentType": false,
"DOMError": false,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -459,8 +459,8 @@
"HashChangeEvent": false,
"hasKeyModifiers": false,
"Headers": false,
"History": false,
"history": false,
"History": false,
"HTMLAllCollection": false,
"HTMLAnchorElement": false,
"HTMLAreaElement": false,
Expand Down Expand Up @@ -587,8 +587,8 @@
"LinearAccelerationSensor": false,
"listenOnce": false,
"localStorage": false,
"Location": false,
"location": false,
"Location": false,
"locationbar": false,
"Lock": false,
"LockManager": false,
Expand Down Expand Up @@ -644,8 +644,8 @@
"NamedNodeMap": false,
"NaN": false,
"NavigationPreloadManager": false,
"Navigator": false,
"navigator": false,
"Navigator": false,
"NetworkInformation": false,
"Node": false,
"NodeFilter": false,
Expand Down Expand Up @@ -789,8 +789,8 @@
"PaymentRequest": false,
"PaymentRequestUpdateEvent": false,
"PaymentResponse": false,
"Performance": false,
"performance": false,
"Performance": false,
"PerformanceElementTiming": false,
"PerformanceEntry": false,
"PerformanceEventTiming": false,
Expand Down Expand Up @@ -878,8 +878,8 @@
"RTCSessionDescription": false,
"RTCStatsReport": false,
"RTCTrackEvent": false,
"Screen": false,
"screen": false,
"Screen": false,
"screenLeft": false,
"ScreenOrientation": false,
"screenTop": false,
Expand Down Expand Up @@ -1075,8 +1075,8 @@
"UserActivation": false,
"ValidityState": false,
"VideoPlaybackQuality": false,
"VisualViewport": false,
"visualViewport": false,
"VisualViewport": false,
"VTTCue": false,
"WaveShaperNode": false,
"WeakMap": false,
Expand All @@ -1102,8 +1102,8 @@
"WebSocket": false,
"WebUIListener": false,
"WheelEvent": false,
"Window": false,
"window": false,
"Window": false,
"Worker": false,
"Worklet": false,
"WritableStream": false,
Expand Down

0 comments on commit 3c74fce

Please sign in to comment.