| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent cdc4437 commit 351495e
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -65,6 +65,8 @@ rules: | |||
| 65 | 65 | # disabled with --without-intl build flag. | |
| 66 | 66 | - name: Intl | |
| 67 | 67 | message: Use `const { Intl } = globalThis;` instead of the global. | |
| 68 | + - name: Iterator | ||
| 69 | + message: Use `const { Iterator } = globalThis;` instead of the global. | ||
| 68 | 70 | - name: MessageChannel | |
| 69 | 71 | message: Use `const { MessageChannel } = require('internal/worker/io');` instead of the global. | |
| 70 | 72 | - name: MessageEvent | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -63,6 +63,7 @@ const intrinsics = new Set([ | |||
| 63 | 63 | 'SharedArrayBuffer', | |
| 64 | 64 | 'Atomics', | |
| 65 | 65 | 'WebAssembly', | |
| 66 | + 'Iterator', | ||
| 66 | 67 | ]); | |
| 67 | 68 | ||
| 68 | 69 | if (global.gc) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -632,6 +632,7 @@ const builtins = [ | |||
| 632 | 632 | 'Int32Array', | |
| 633 | 633 | 'Int8Array', | |
| 634 | 634 | ...(common.hasIntl ? ['Intl'] : []), | |
| 635 | + 'Iterator', | ||
| 635 | 636 | 'inspector', | |
| 636 | 637 | 'isFinite', | |
| 637 | 638 | 'isNaN', | |
| Back | FazBrowse Home | New Git URL |
0 commit comments