| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0461729 commit a87fa5b
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -173,9 +173,7 @@ rules: | |||
| 173 | 173 | - name: WeakSet | |
| 174 | 174 | into: Safe | |
| 175 | 175 | globals: | |
| 176 | - Intl: false | ||
| 177 | 176 | # Parameters passed to internal modules | |
| 178 | - global: false | ||
| 179 | 177 | require: false | |
| 180 | 178 | process: false | |
| 181 | 179 | exports: false | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -162,7 +162,7 @@ function copyPrototype(src, dest, prefix) { | |||
| 162 | 162 | 'Reflect', | |
| 163 | 163 | ].forEach((name) => { | |
| 164 | 164 | // eslint-disable-next-line no-restricted-globals | |
| 165 | - copyPropsRenamed(global[name], primordials, name); | ||
| 165 | + copyPropsRenamed(globalThis[name], primordials, name); | ||
| 166 | 166 | }); | |
| 167 | 167 | ||
| 168 | 168 | // Create copies of intrinsic objects | |
@@ -206,7 +206,7 @@ function copyPrototype(src, dest, prefix) { | |||
| 206 | 206 | 'WeakSet', | |
| 207 | 207 | ].forEach((name) => { | |
| 208 | 208 | // eslint-disable-next-line no-restricted-globals | |
| 209 | - const original = global[name]; | ||
| 209 | + const original = globalThis[name]; | ||
| 210 | 210 | primordials[name] = original; | |
| 211 | 211 | copyPropsRenamed(original, primordials, name); | |
| 212 | 212 | copyPrototype(original.prototype, primordials, `${name}Prototype`); | |
@@ -219,7 +219,7 @@ function copyPrototype(src, dest, prefix) { | |||
| 219 | 219 | 'Promise', | |
| 220 | 220 | ].forEach((name) => { | |
| 221 | 221 | // eslint-disable-next-line no-restricted-globals | |
| 222 | - const original = global[name]; | ||
| 222 | + const original = globalThis[name]; | ||
| 223 | 223 | primordials[name] = original; | |
| 224 | 224 | copyPropsRenamedBound(original, primordials, name); | |
| 225 | 225 | copyPrototype(original.prototype, primordials, `${name}Prototype`); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments