-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[wasm][debugger] Fix exceptions on eval #64374
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
Conversation
|
Tagging subscribers to 'arch-wasm': @lewing Issue Details
|
lewing
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of issues. I think we might want to see if we can clean up the error result handling a bit too.
Typo fix, thanks @lewing. Co-authored-by: Larry Ewing <lewing@microsoft.com>
Co-authored-by: Larry Ewing <lewing@microsoft.com>
|
Can you share how it looks different in practice?
|
| public bool IsErr => Error != null; | ||
|
|
||
| private Result(JObject result, JObject error) | ||
| private Result(JObject resultOrError, bool isError, JObject error = null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't look right. We now have a resultOrError, and error, but also isError. Why do we need all 3?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually I left it only because of the FromJson function:
public static Result FromJson(JObject obj)
{
//Log ("protocol", $"from result: {obj}");
return new Result(obj["result"] as JObject, false, obj["error"] as JObject);
}
that I did not want to change but now I did it and the version with 2 arguments works equally good. Thanks!




Fixes #61665.