Return mscript output if no callback defined
This commit is contained in:
parent
56a83615a9
commit
58ade0518e
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue