| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -379,13 +379,17 @@ The location information will be one of: | |||
| 379 | 379 | represents a call in a user program (using ES module system), or | |
| 380 | 380 | its dependencies. | |
| 381 | 381 | ||
| 382 | - The string representing the stack trace is lazily generated when the | ||
| 383 | - `error.stack` property is **accessed**. | ||
| 384 | - | ||
| 385 | 382 | The number of frames captured by the stack trace is bounded by the smaller of | |
| 386 | 383 | `Error.stackTraceLimit` or the number of available frames on the current event | |
| 387 | 384 | loop tick. | |
| 388 | 385 | ||
| 386 | + `error.stack` is a getter/setter for a hidden internal property which is only | ||
| 387 | + present on builtin `Error` objects (those for which [`Error.isError`][] returns | ||
| 388 | + true). If `error` is not a builtin error object, then the `error.stack` getter | ||
| 389 | + will always return `undefined`, and the setter will do nothing. This can occur | ||
| 390 | + if the accessor is manually invoked with a `this` value that is not a builtin | ||
| 391 | + error object, such as a {Proxy}. | ||
| 392 | + | ||
| 389 | 393 | ## Class: `AssertionError` | |
| 390 | 394 | ||
| 391 | 395 | * Extends: {errors.Error} | |
@@ -4381,6 +4385,7 @@ An error occurred trying to allocate memory. This should never happen. | |||
| 4381 | 4385 | [`ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST`]: #err_missing_message_port_in_transfer_list | |
| 4382 | 4386 | [`ERR_MISSING_TRANSFERABLE_IN_TRANSFER_LIST`]: #err_missing_transferable_in_transfer_list | |
| 4383 | 4387 | [`ERR_REQUIRE_ASYNC_MODULE`]: #err_require_async_module | |
| 4388 | + [`Error.isError`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/isError | ||
| 4384 | 4389 | [`EventEmitter`]: events.md#class-eventemitter | |
| 4385 | 4390 | [`MessagePort`]: worker_threads.md#class-messageport | |
| 4386 | 4391 | [`Object.getPrototypeOf`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getPrototypeOf | |
| Back | FazBrowse Home | New Git URL |
0 commit comments