Exemple #1
0
 public SourceCode GetScriptSource(uint scriptId)
 {
     return(runner.RunTask(() =>
     {
         Native.ThrowIfError(Native.JsDiagGetSource(scriptId, out JavaScriptValue source));
         return JsonConvert.DeserializeObject <SourceCode>(source.ToJsonString());
     }));
 }