-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
exception unsealer to go with SES console #731
Labels
devex
developer experience
kriskowal-review-2024-01
Issues that kriskowal wants to bring to the attention of the team for review as of January, 2024
Comments
Thanks! |
yes, move to endo |
This was referenced Sep 10, 2021
related: passing DEBUG and related env vars into xsnap-worker |
kriskowal
added
the
kriskowal-review-2024-01
Issues that kriskowal wants to bring to the attention of the team for review as of January, 2024
label
Jan 10, 2024
@erights seems to be working on something that looks like it will address this. |
Just noting that #2109 is related, but would not close this bug. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
devex
developer experience
kriskowal-review-2024-01
Issues that kriskowal wants to bring to the attention of the team for review as of January, 2024
The censoring in the SES
assert
andconsole
are an approximation of exception sealing. But we lack a reified exception unsealer that we can use for example, in our REPL.Exception sealing is motivated by the observation that throw-catch is dynamically scoped, contrary to encapsulation as needed for Cap discipline.
Section 4.3 Exceptions and Errors of the 2010 Joe-E paper is a good write-up including this example:
See also Reid to cap-talk 13 April 2010.
ava-xs has a work-around that logs errors before sending them over the wire because that's where the SES console that knows the uncensored details are:
https://github.com/Agoric/agoric-sdk/blob/23ed67c070a6ea04fb305d469283107b1d3d65f3/packages/xsnap/src/avaAssertXS.js#L344
This came up in discussion of Agoric/agoric-sdk#3079 .
If we could grant the
test()
function an exception unsealer, it could serialize the uncensored error details and send them along with other test result info.Another place that should be able to unseal errors is the REPL. (cc @michaelfig )
The text was updated successfully, but these errors were encountered: