From 58ade0518e21799e9190baa3f0a8c36a2737b246 Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Sun, 24 Feb 2019 08:22:41 -0500 Subject: [PATCH] Return mscript output if no callback defined --- app/lib/mscript/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/lib/mscript/index.js b/app/lib/mscript/index.js index 708b7c9..e2fac5e 100644 --- a/app/lib/mscript/index.js +++ b/app/lib/mscript/index.js @@ -122,6 +122,8 @@ class Mscript { if (typeof callback !== 'undefined') { //should only be invoked by running mscript.tests() callback(this.output); + } else { + return this.output; } } variable (line) {