Skip to content

Commit

Permalink
Update Jint to 3.0.0-beta-1914 (#7485)
Browse files Browse the repository at this point in the history
  • Loading branch information
jptissot authored Nov 7, 2020
1 parent 7a2e676 commit 8c5ce19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/OrchardCore.Build/Dependencies.props
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<PackageManagement Include="Irony.Core" Version="1.0.7" />
<PackageManagement Include="Fluid.Core" Version="1.0.0-beta-9693" />
<PackageManagement Include="GraphQL" Version="2.4.0" />
<PackageManagement Include="Jint" Version="3.0.0-beta-1632" />
<PackageManagement Include="Jint" Version="3.0.0-beta-1914" />
<PackageManagement Include="HtmlSanitizer" Version="5.0.355" />
<PackageManagement Include="Lucene.Net" Version="4.8.0-beta00012" />
<PackageManagement Include="Lucene.Net.Analysis.Common" Version="4.8.0-beta00012" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public object Evaluate(IScriptingScope scope, string script)
var parsedAst = _memoryCache.GetOrCreate(script, entry =>
{
var parser = new JavaScriptParser(script);
return parser.ParseProgram();
return parser.ParseScript();
});

var result = jsScope.Engine.Execute(parsedAst).GetCompletionValue()?.ToObject();
Expand Down

0 comments on commit 8c5ce19

Please sign in to comment.