From 856874a7272e2ec2f2eadd307664fb3c9b585409 Mon Sep 17 00:00:00 2001 From: hangaebal Date: Tue, 31 May 2016 11:21:17 +0900 Subject: [PATCH] Fix Bug when CodeMirror return function object --- client/commonFramework/output-display.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/commonFramework/output-display.js b/client/commonFramework/output-display.js index 9f96908a1f..291e61d7f1 100644 --- a/client/commonFramework/output-display.js +++ b/client/commonFramework/output-display.js @@ -39,6 +39,9 @@ window.common = (function(global) { codeOutput.setSize('100%', '100%'); common.updateOutputDisplay = function updateOutputDisplay(str = '') { + if (typeof str === 'function') { + str = str.toString(); + } if (typeof str !== 'string') { str = JSON.stringify(str); }