Commit 5763085
committed
fix(suppress-warnings): properly restore state in withSuppressedWarnings
Track whether warning type was already suppressed before modification.
Only remove from suppressedWarnings set if this function added it.
Ensures proper cleanup and restoration of original process.emitWarning state.1 parent c7f84fc commit 5763085
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
152 | 157 | | |
153 | 158 | | |
154 | 159 | | |
0 commit comments