Skip to content

Commit 39d414c

Browse files
authored
Merge pull request rustwasm#11 from clanehin/master
Update readme to talk about Error.stackTraceLimit
2 parents 52f6501 + ef64b00 commit 39d414c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,8 @@ impl MyBigThing {
6464
}
6565
}
6666
```
67+
68+
### Error.stackTraceLimit
69+
70+
Many browsers only capture the top 10 frames of a stack trace. In rust programs this is less likely to be enough. To see more frames, you can set the non-standard value Error.strackTraceLimit. For more information see the [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Microsoft_Extensions/Error.stackTraceLimit) or [v8 docs](https://v8.dev/docs/stack-trace-api).
71+

src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@
6464
//! }
6565
//! }
6666
//! ```
67+
//!
68+
//! ## Error.stackTraceLimit
69+
//!
70+
//! Many browsers only capture the top 10 frames of a stack trace. In rust programs this is less likely to be enough. To see more frames, you can set the non-standard value Error.strackTraceLimit. For more information see the [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Microsoft_Extensions/Error.stackTraceLimit) or [v8 docs](https://v8.dev/docs/stack-trace-api).
71+
//!
6772
6873
#[macro_use]
6974
extern crate cfg_if;

0 commit comments

Comments
 (0)