diff --git a/lib/PuppeteerSharp.Tests/PuppeteerSharp.Tests.csproj b/lib/PuppeteerSharp.Tests/PuppeteerSharp.Tests.csproj
index c8c954acb..965b76055 100644
--- a/lib/PuppeteerSharp.Tests/PuppeteerSharp.Tests.csproj
+++ b/lib/PuppeteerSharp.Tests/PuppeteerSharp.Tests.csproj
@@ -18,7 +18,7 @@
-
+
diff --git a/lib/PuppeteerSharp/Binding.cs b/lib/PuppeteerSharp/Binding.cs
index 56aa0e1e2..faae0e9ac 100644
--- a/lib/PuppeteerSharp/Binding.cs
+++ b/lib/PuppeteerSharp/Binding.cs
@@ -76,15 +76,24 @@ internal async Task RunAsync(
const string taskResultPropertyName = "Result";
var result = await BindingUtils.ExecuteBindingAsync(Function, args).ConfigureAwait(false);
- if (result is Task taskResult)
+
+ switch (result)
{
- await taskResult.ConfigureAwait(false);
+ case Task