Skip to content

Commit 6375104

Browse files
committed
Fixed build
1 parent bd803b3 commit 6375104

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@
282282
}
283283

284284
await JSObjectReferenceAsyncTests();
285+
285286
if (shouldSupportSyncInterop)
286287
{
287288
JSObjectReferenceTests();
@@ -631,11 +632,11 @@
631632
}
632633
catch (Exception ex)
633634
{
634-
ReturnValues["invokeAsyncNonExistentJSObjectReference"] = "Failure";
635+
ReturnValues["invokeAsyncNonExistentJSObjectReference"] = $"Failure: {ex.Message}";
635636
}
636637
}
637638

638-
private async Task JSObjectReferenceTests()
639+
private void JSObjectReferenceTests()
639640
{
640641
var inProcRuntime = ((IJSInProcessRuntime)JSRuntime);
641642

@@ -691,7 +692,7 @@
691692
}
692693
catch (Exception ex)
693694
{
694-
ReturnValues["invokeNonExistentJSObjectReference"] = "Failure";
695+
ReturnValues["invokeNonExistentJSObjectReference"] = $"Failure: {ex.Message}";
695696
}
696697
}
697698

0 commit comments

Comments
 (0)