From ecdea15617bc214904cc2ae7ec0032443745720e Mon Sep 17 00:00:00 2001 From: Taritsyn Date: Thu, 26 Oct 2023 11:42:44 +0300 Subject: [PATCH] Fix a `EnsureSufficientExecutionStack` method for older versions of .NET --- YantraJS.Core/Core/JSContextExtensions.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/YantraJS.Core/Core/JSContextExtensions.cs b/YantraJS.Core/Core/JSContextExtensions.cs index 67f89761..aac0bc86 100644 --- a/YantraJS.Core/Core/JSContextExtensions.cs +++ b/YantraJS.Core/Core/JSContextExtensions.cs @@ -19,6 +19,7 @@ public static void EnsureSufficientExecutionStack(this JSContext context) try { RuntimeHelpers.EnsureSufficientExecutionStack(); + return; } catch (Exception ex) {