Skip to content

Commit 32847a5

Browse files
committed
Fix
1 parent 898cfc0 commit 32847a5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Components/test/testassets/BasicTestApp/InteropComponent.razor

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@
163163
var circularStructure = await JSRuntime.InvokeAsync<object>("eval", "window");
164164
ReturnValues["invokeAsyncThrowsSerializingCircularStructure"] = circularStructure is null ? "Failure: null" : "Failure: not null";
165165
}
166+
catch (JSException)
167+
{
168+
ReturnValues["invokeAsyncThrowsSerializingCircularStructure"] = "Success";
169+
}
166170
catch (Exception ex)
167171
{
168172
ReturnValues["invokeAsyncThrowsSerializingCircularStructure"] = $"Failure: {ex.Message}";
@@ -173,10 +177,6 @@
173177
var elementReference = await JSRuntime.InvokeAsync<ElementReference>("returnElementReference", element);
174178
ReturnValues["elementReference"] = "Success";
175179
}
176-
catch (JSException ex)
177-
{
178-
ReturnValues["elementReference"] = $"Failure: {ex.Message}";
179-
}
180180
catch (Exception ex)
181181
{
182182
ReturnValues["elementReference"] = $"Failure: {ex.Message}";

0 commit comments

Comments
 (0)