Update mscript usage

This commit is contained in:
mmcwilliams 2018-06-16 23:19:58 -04:00
parent 9e125e37d3
commit 52350b2325
3 changed files with 3 additions and 2 deletions

View File

@ -2494,7 +2494,7 @@ const cmd = require('./lib/ui/cmd.js');
const log = require('./lib/ui/log.js');
const devices = require('./lib/ui/devices.js');
const mse = require('./lib/ui/mscript.js');
const mscript = require('./lib/mscript');
const Mscript = require('./lib/mscript');

View File

@ -100,6 +100,7 @@ mse.mscript.toSequence = function () {
mse.mscript.compile = function (cb) {
'use strict';
const data = mse.mscript.editor.getValue();
let mscript = new Mscript();
let output;
mse.mscript.raw = data;
mscript.interpret(data, (output) => {

View File

@ -20,7 +20,7 @@ const cmd = require('./lib/ui/cmd.js');
const log = require('./lib/ui/log.js');
const devices = require('./lib/ui/devices.js');
const mse = require('./lib/ui/mscript.js');
const mscript = require('./lib/mscript');
const Mscript = require('./lib/mscript');