Commit 141cd23
test: remove internal errorCache property
The internal `assert` modules `errorCache` property is exposed only for
testing. The one test that used it is rewritten here to not use it.
This has the following advantages:
* The test now makes sure that there is an empty cache in a more robust
way. Instead of relying on the internal implementation of
`errorCache`, it simply spawns a separate process.
* One less test using the `--expose-internals` flag.
PR-URL: nodejs#23304
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>1 parent 7a3b34a commit 141cd23
1 file changed
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
0 commit comments