Exemplo n.º 1
0
 public Variable Evaluate(string expression, uint stackFrameIndex, bool forceSetValueProp)
 {
     return(runner.RunTask(() =>
     {
         JavaScriptValue exp = JavaScriptValue.FromString(expression);
         Native.ThrowIfError(Native.JsDiagEvaluate(exp, stackFrameIndex, JavaScriptParseScriptAttributes.JsParseScriptAttributeNone, forceSetValueProp, out JavaScriptValue result), true);
         return JsonConvert.DeserializeObject <Variable>(result.ToJsonString());
     }));
 }