Skip to content

Commit

Permalink
Update stack-trace-api.md
Browse files Browse the repository at this point in the history
  • Loading branch information
php4fan authored May 12, 2024
1 parent 70e0a65 commit de528b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/docs/stack-trace-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The stack trace is collected when the error is created and is the same regardles
Error.stackTraceLimit
```

Setting it to `0` disables stack trace collection. Any finite integer value can be used as the maximum number of frames to collect. Setting it to `Infinity` means that all frames get collected. This variable only affects the current context; it has to be set explicitly for each context that needs a different value. (Note that what is known as a “context” in V8 terminology corresponds to a page or `<iframe>` in Google Chrome). To set a different default value that affects all contexts use the following V8 command-line flag:
Setting it to `0` or `undefined` disables stack trace collection. Any finite integer value can be used as the maximum number of frames to collect. Setting it to `Infinity` means that all frames get collected. This variable only affects the current context; it has to be set explicitly for each context that needs a different value. (Note that what is known as a “context” in V8 terminology corresponds to a page or `<iframe>` in Google Chrome). To set a different default value that affects all contexts use the following V8 command-line flag:

```bash
--stack-trace-limit <value>
Expand Down

0 comments on commit de528b9

Please sign in to comment.