function printResult(result, wasThrown, valueResult, exceptionDetails)
    {
        if (!result)
            return;

        WebInspector.console.showPromise().then(reportUponEvaluation);
        function reportUponEvaluation()
        {
            target.consoleModel.dispatchEventToListeners(WebInspector.ConsoleModel.Events.CommandEvaluated, {result: result, wasThrown: wasThrown, text: text, commandMessage: commandMessage, exceptionDetails: exceptionDetails});
        }
    }
@param {?WebInspector.RemoteObject} result
@param {boolean} wasThrown
@param {?RuntimeAgent.RemoteObject=} valueResult
@param {?DebuggerAgent.ExceptionDetails=} exceptionDetails