internal JavaScriptExecutionResult(bool isSuccess, string definition, string exception) { Success = isSuccess; if (Success) { ResultValue = JavaScriptValue.FromJson(definition); } else { ExceptionMessage = exception; } }