Skip to content

[wasm][debugger]Evaluate a sum between an object and a string - #90175

Merged
thaystg merged 5 commits into
dotnet:mainfrom
thaystg:thays_fix_66824
Aug 14, 2023
Merged

[wasm][debugger]Evaluate a sum between an object and a string#90175
thaystg merged 5 commits into
dotnet:mainfrom
thaystg:thays_fix_66824

Conversation

@thaystg

@thaystg thaystg commented Aug 8, 2023

Copy link
Copy Markdown
Member

Fixes #66824

@thaystg
thaystg requested a review from radical as a code owner August 8, 2023 17:52
@ghost ghost added the area-Debugger-mono label Aug 8, 2023
@ghost ghost assigned thaystg Aug 8, 2023
@ghost

ghost commented Aug 8, 2023

Copy link
Copy Markdown

Tagging subscribers to this area: @thaystg
See info in area-owners.md if you want to be subscribed.

Issue Details

Fixes #66824

Author: thaystg
Assignees: -
Labels:

area-Debugger-mono

Milestone: -

Comment thread src/mono/wasm/debugger/BrowserDebugProxy/EvaluateExpression.cs
Co-authored-by: Ankit Jain <radical@gmail.com>
Comment thread src/mono/wasm/debugger/BrowserDebugProxy/EvaluateExpression.cs Outdated
Comment thread src/mono/wasm/debugger/BrowserDebugProxy/EvaluateExpression.cs Outdated
Comment thread src/mono/wasm/debugger/BrowserDebugProxy/EvaluateExpression.cs Outdated
Comment thread src/mono/wasm/debugger/BrowserDebugProxy/EvaluateExpression.cs Outdated
Comment thread src/mono/wasm/debugger/BrowserDebugProxy/EvaluateExpression.cs Outdated
Comment thread src/mono/wasm/debugger/BrowserDebugProxy/MemberReferenceResolver.cs Outdated
Comment thread src/mono/wasm/debugger/BrowserDebugProxy/MemberReferenceResolver.cs Outdated
Comment thread src/mono/wasm/debugger/DebuggerTestSuite/EvaluateOnCallFrame2Tests.cs Outdated
Comment thread src/mono/wasm/debugger/BrowserDebugProxy/EvaluateExpression.cs Outdated
{
var id = pause_location["callFrames"][0]["callFrameId"].Value<string>();
await EvaluateOnCallFrameAndCheck(id,
("myList+\"asd\"", TString("System.Collections.Generic.List`1[System.Int32]asd"))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • can we also test this for a type that has ToString() overridden?
  • And test object o = new()
  • And what happens in case of a value type?
  • what would happen for list l = null; l + "asd" ?

What about these?:

  • object/vt + object/vt?
  • object/vt + non-string primitive type?
  • Any other binary operators, what happens in those cases?
    These don't need to be fixed in this PR, I'm just curious if they would work or if they will at least fail without crashing.

@ghost ghost added the needs-author-action An issue or pull request that requires more info or actions from the author. label Aug 10, 2023
Co-authored-by: Ankit Jain <radical@gmail.com>
@ghost ghost removed the needs-author-action An issue or pull request that requires more info or actions from the author. label Aug 11, 2023
@thaystg
thaystg requested a review from radical August 11, 2023 16:00
@thaystg
thaystg merged commit 19e84e7 into dotnet:main Aug 14, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Sep 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Evaluation of list + string.

2 participants