public override object Evaluate(string expression, string documentName) { object result = InvokeScript(() => { EdgeJsValue resultValue = EdgeJsContext.RunScript(expression, _jsSourceContext++, documentName); return(MapToHostType(resultValue)); }); return(result); }
public override object Evaluate(string expression) { object result = InvokeScript(() => { EdgeJsValue resultValue = EdgeJsContext.RunScript(expression); return(MapToHostType(resultValue)); }); return(result); }
public override void Execute(string code, string documentName) { InvokeScript(() => EdgeJsContext.RunScript(code, _jsSourceContext++, documentName)); }
public override void Execute(string code) { InvokeScript(() => EdgeJsContext.RunScript(code)); }