URLSearchParams not working

Provavelmente é relacionado ao Jint, mas estou tendo problemas para utilizar a classe URLSearchParams para dar parse em uma query.

Quando tento utilizá-la, o seguinte erro ocorre:

"Take.Blip.Builder.ActionProcessingException: The processing of the action 'ExecuteScript' has failed\r\n ---> Newtonsoft.Json.JsonSerializationException: Self referencing loop detected for property 'Engine' with type 'Jint.Engine'. Path 'error.Engine.Global'.\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.CheckForCircularReference(JsonWriter writer, Object value, JsonProperty property, JsonContract contract, JsonContainerContract containerContract, JsonProperty containerProperty)\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.CalculatePropertyValues(JsonWriter writer, Object value, JsonContainerContract contract, JsonProperty member, JsonProperty property, JsonContract& memberContract, Object& memberValue)\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeDictionary(JsonWriter writer, IDictionary values, JsonDictionaryContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType)\r\n   at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType)\r\n   at Newtonsoft.Json.JsonConvert.SerializeObjectInternal(Object value, Type type, JsonSerializer jsonSerializer)\r\n   at Take.Blip.Builder.Actions.ExecuteScript.ExecuteScriptAction.SetScriptResultAsync(IContext context, ExecuteScriptSettings settings, JsValue result, CancellationToken cancellationToken)\r\n   at Take.Blip.Builder.Actions.ExecuteScript.ExecuteScriptAction.ExecuteAsync(IContext context, ExecuteScriptSettings settings, CancellationToken cancellationToken)\r\n   at Takenet.Iris.Application.TemplateHosting.Templates.Builder.MetricsActionDecorator.ExecuteAsync(IContext context, JObject settings, CancellationToken cancellationToken) in C:\\TeamCity\\BuildAgent\\work\\b70ef3b2dbbcf70e\\src\\Applications\\Takenet.Iris.Application.TemplateHosting\\Templates\\Builder\\MetricsActionDecorator.cs:line 66\r\n   at Takenet.Iris.Application.TemplateHosting.Templates.Builder.TracedActionDecorator.ExecuteAsync(IContext context, JObject settings, CancellationToken cancellationToken) in C:\\TeamCity\\BuildAgent\\work\\b70ef3b2dbbcf70e\\src\\Applications\\Takenet.Iris.Application.TemplateHosting\\Templates\\Builder\\TracedActionDecorator.cs:line 33\r\n   at Take.Blip.Builder.FlowManager.ProcessActionsAsync(LazyInput lazyInput, IContext context, Action[] actions, ICollection`1 actionTraces, CancellationToken cancellationToken)\r\n   --- End of inner exception stack trace ---\r\n   at Take.Blip.Builder.FlowManager.ProcessActionsAsync(LazyInput lazyInput, IContext context, Action[] actions, ICollection`1 actionTraces, CancellationToken cancellationToken)\r\n   at Take.Blip.Builder.FlowManager.ProcessInputAsync(Message message, Flow flow, CancellationToken cancellationToken)"

Segue a linha de código que cause o erro:

const pageOriginUrlQueryParams = new URLSearchParams('aaa=aaa&b=aaa');

Substituí a variável por uma query hardcoded para mostrar que o problema não era o valor da variável.