Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThays Grazia <thaystg@gmail.com>2020-04-05 21:16:28 +0300
committerGitHub <noreply@github.com>2020-04-05 21:16:28 +0300
commit3fba2c81662f97c7377448e6c89b7285cc40b4cd (patch)
tree82fd061199173c055cff3999659767ac9921d479 /sdks/wasm/DebuggerTestSuite
parent6ec38cc08044e05a997279f1e6ce820d59314675 (diff)
Some frames were skipped in MonoProxy but we don't skip the frame_id, doing this the call_stack has a different position than it's in the real stack on mono side. (#19447)
I changed the frame_id, so we will follow the frame_id from callstack even if we don't add all of them into the CallStack list in MonoProxy. I also added a test. Fixes #19379
Diffstat (limited to 'sdks/wasm/DebuggerTestSuite')
-rw-r--r--sdks/wasm/DebuggerTestSuite/Tests.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/sdks/wasm/DebuggerTestSuite/Tests.cs b/sdks/wasm/DebuggerTestSuite/Tests.cs
index 3d553c55b1a..7f976332882 100644
--- a/sdks/wasm/DebuggerTestSuite/Tests.cs
+++ b/sdks/wasm/DebuggerTestSuite/Tests.cs
@@ -839,6 +839,13 @@ namespace DebuggerTests
CheckObject (locals, "this", "Math.NestedInMath");
}
);
+
+ await CheckLocalsOnFrame (wait_res ["callFrames"][2],
+ test_fn: (locals) => {
+ Assert.Equal (4, locals.Count());
+ CheckString (locals, "ls", "string from jstest");
+ CheckNumber (locals, "li", 52);
+ });
// TODO: previous frames have async machinery details, so no point checking that right now