-
Notifications
You must be signed in to change notification settings - Fork 71
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
SES.confine() throws away stack traces and line numbers #172
Comments
Added the 1.0-blocker label. But not that we do not need a fully function debugging experience to unblock 1.0. Progress could unblock even if this bug remains open for remaining problems. |
There are two things which might help:
The patch would look like this:
It wants to live in Realms, but we might also be able to add it to SES instead. Also it kinda wants to be provided as a third argument to the What we learned about The other thing we learned is that there are a lot of And debugging, in general, is a special power, which should come from the top-most "primal" realm, and get virtualized as you make new realms inside that. We have some old E work on this to draw from, but it'll be a while before we get this figured out in the JS context. |
Monte draws from that E work: exceptions are sealed and a special debugging power, unsealException, is passed to the top-level main entry point. Monte's |
@michaelfig does the technique in Agoric/SwingSet#158 apply here, by chance? |
It does, insofar as the filename is attached via a sourceURL to the string you're evaluating. This is the "module loader provides URLs" solution. |
SES now carries sourceURL and has taming options for errors. Please reopen if this issue is still relevant. |
In Agoric/SES#9, @warner writes Aug 9:
he goes on to discuss solutions, but meanwhile, I think it's worth promoting the problem to its own issue.
The text was updated successfully, but these errors were encountered: