sebastienros / jint

Javascript Interpreter for .NET
BSD 2-Clause "Simplified" License
4.04k stars 558 forks source link

Can no longer use cached Esprima Scripts #1851

Closed dlprows closed 4 months ago

dlprows commented 4 months ago

in version 3.1.0, a change was made to make Engine.Evaluate take a Prepared<Script> instead of a Script

Prepared<T> has an internal constructor, so it is no longer possible to store parsed scripts for repeatedly run scripts

lahma commented 4 months ago

You need to use Engine.PrepareScript() to get an instance of such prepared script.