Download Jar. Transpiled version (10096L) is out of date.
1 | !7 |
2 | |
3 | p { |
4 | defaultPCallPolicy_set(error -> {}); // Disable printStackTrace on pcall |
5 | addGlobalLastErrorsBufferToDefaultPCallPolicy(); |
6 | pcall { fail("oopsie"); } |
7 | var errors = globalLastErrorsBuffer().asList(); |
8 | assertEqualsVerbose(1, l(errors)); |
9 | assertContainsVerbose("oopsie", str(first(errors))); |
10 | print("All OK"); |
11 | } |
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1036411 |
Snippet name: | Test addGlobalLastErrorsBufferToDefaultPCallPolicy (OK) |
Eternal ID of this version: | #1036411/9 |
Text MD5: | 20e439e2eef088288605f6f83b0351a1 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-12-11 13:59:42 |
Source code size: | 334 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 202 / 634 |
Version history: | 8 change(s) |
Referenced in: | [show references] |