| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7a37590 commit f8098c3
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -55,6 +55,7 @@ rules: | |||
| 55 | 55 | into: Number | |
| 56 | 56 | - name: JSON | |
| 57 | 57 | - name: Map | |
| 58 | + into: Safe | ||
| 58 | 59 | - name: Math | |
| 59 | 60 | - name: Number | |
| 60 | 61 | - name: Object | |
@@ -68,6 +69,7 @@ rules: | |||
| 68 | 69 | - name: Reflect | |
| 69 | 70 | - name: RegExp | |
| 70 | 71 | - name: Set | |
| 72 | + into: Safe | ||
| 71 | 73 | - name: String | |
| 72 | 74 | - name: Symbol | |
| 73 | 75 | - name: SyntaxError | |
@@ -78,7 +80,9 @@ rules: | |||
| 78 | 80 | - name: Uint8ClampedArray | |
| 79 | 81 | - name: URIError | |
| 80 | 82 | - name: WeakMap | |
| 83 | + into: Safe | ||
| 81 | 84 | - name: WeakSet | |
| 85 | + into: Safe | ||
| 82 | 86 | globals: | |
| 83 | 87 | Intl: false | |
| 84 | 88 | # Parameters passed to internal modules | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -77,6 +77,10 @@ new RuleTester({ | |||
| 77 | 77 | `, | |
| 78 | 78 | options: [{ name: 'Reflect' }], | |
| 79 | 79 | }, | |
| 80 | + { | ||
| 81 | + code: 'const { Map } = primordials; new Map()', | ||
| 82 | + options: [{ name: 'Map', into: 'Safe' }], | ||
| 83 | + }, | ||
| 80 | 84 | ], | |
| 81 | 85 | invalid: [ | |
| 82 | 86 | { | |
@@ -154,5 +158,10 @@ new RuleTester({ | |||
| 154 | 158 | options: [{ name: 'Reflect' }], | |
| 155 | 159 | errors: [{ message: /const { ReflectOwnKeys } = primordials/ }] | |
| 156 | 160 | }, | |
| 161 | + { | ||
| 162 | + code: 'new Map()', | ||
| 163 | + options: [{ name: 'Map', into: 'Safe' }], | ||
| 164 | + errors: [{ message: /const { SafeMap } = primordials/ }] | ||
| 165 | + }, | ||
| 157 | 166 | ] | |
| 158 | 167 | }); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments