Commit 259f8f8
authored
fix: catch exceptions setting Error.stackTraceLimit (#5254)
When node is run with [--frozen-intrinsics], a `TypeError` is thrown
when any intrinsic objects or their properties are modified. This
occurs when attempting to set `Error.stackTraceLimit`. To avoid exiting
due to an uncaught exception, catch the exception, debug log it, and
continue.
[--frozen-intrinsics]: https://nodejs.org/api/cli.html#--frozen-intrinsics
Signed-off-by: Kevin Locke <[email protected]>1 parent 210d658 commit 259f8f8
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
46 | 50 | | |
47 | 51 | | |
48 | 52 | | |
| |||
0 commit comments