Slight update in case anyone experiences same problem,
It turns out the problem wasn't in supporting code, but rather with the 5.4.0 version.
In 5.4.0 V8ScriptEngine.Script.getStackTrace() throws
P.S.
We are using assemblies from the ClearScript.Install NuGet package.
It turns out the problem wasn't in supporting code, but rather with the 5.4.0 version.
In 5.4.0 V8ScriptEngine.Script.getStackTrace() throws
RuntimeBinderException: 'Microsoft.ClearScript.V8.V8ScriptItem' does not contain a definition for 'EngineInternal'
In 5.4.1 it works properly. Something related to V8 debugging has changed in this version though so beware when upgrading (our custom debugger which was working fine on 5.4.0 doesn't work anymore)P.S.
We are using assemblies from the ClearScript.Install NuGet package.