A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/sebastienros/jint/issues/586 below:

Engine.Execute takes more than two minutes to complete (even with the 2s timeout) · Issue #586 · sebastienros/jint · GitHub

The following program runs for more than two minutes on my machine, even though I've set the timeout interval to two seconds. I'm using .NET Core 2.2 on macOS, but the same thing happens on Linux, too.

using System;

namespace Jint.Run
{
  public class Program
  {
    public static void Main(string[] args)
    {
      new Engine(SetOptions).Execute("new Date (1,  Infinity);");
    }

    private static void SetOptions(Options options)
    {
      options.LimitRecursion(32).TimeoutInterval(TimeSpan.FromSeconds(2));
    }
  }
}

Found via SharpFuzz.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4