Return mscript output if no callback defined

This commit is contained in:
mmcwilliams 2019-02-24 08:22:41 -05:00
parent 56a83615a9
commit 58ade0518e
1 changed files with 2 additions and 0 deletions

View File

@ -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) {