v8 / v8.dev

The source code of v8.dev, the official website of the V8 project.
https://v8.dev/
Apache License 2.0
955 stars 322 forks source link

Update stack-trace-api.md #764

Open php4fan opened 6 months ago

php4fan commented 6 months ago

Added that setting Error.stackTraceLimit = undefined also disables stack traces like setting it to zero does.

I suspect that is true for any non-number value (and also negative numbers, but that is implicit in the statement that any finite integer defines the maximum), but I can only say for sure it's the case for undefined.

Note that at some point in the past setting it to undefined used to have the same effect that Infinity has now. I'm not sure when that changed, it may have been many years ago, but at some point it was true, at least in Chrome.

google-cla[bot] commented 6 months ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

camillobruni commented 5 months ago

Could you sign the CLA to land your PR? https://cla.developers.google.com/. Thanks!

php4fan commented 5 months ago

Could you sign the CLA to land your PR?

I already did