Update mscript usage
This commit is contained in:
parent
9e125e37d3
commit
52350b2325
|
@ -2494,7 +2494,7 @@ const cmd = require('./lib/ui/cmd.js');
|
||||||
const log = require('./lib/ui/log.js');
|
const log = require('./lib/ui/log.js');
|
||||||
const devices = require('./lib/ui/devices.js');
|
const devices = require('./lib/ui/devices.js');
|
||||||
const mse = require('./lib/ui/mscript.js');
|
const mse = require('./lib/ui/mscript.js');
|
||||||
const mscript = require('./lib/mscript');
|
const Mscript = require('./lib/mscript');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -100,6 +100,7 @@ mse.mscript.toSequence = function () {
|
||||||
mse.mscript.compile = function (cb) {
|
mse.mscript.compile = function (cb) {
|
||||||
'use strict';
|
'use strict';
|
||||||
const data = mse.mscript.editor.getValue();
|
const data = mse.mscript.editor.getValue();
|
||||||
|
let mscript = new Mscript();
|
||||||
let output;
|
let output;
|
||||||
mse.mscript.raw = data;
|
mse.mscript.raw = data;
|
||||||
mscript.interpret(data, (output) => {
|
mscript.interpret(data, (output) => {
|
||||||
|
|
|
@ -20,7 +20,7 @@ const cmd = require('./lib/ui/cmd.js');
|
||||||
const log = require('./lib/ui/log.js');
|
const log = require('./lib/ui/log.js');
|
||||||
const devices = require('./lib/ui/devices.js');
|
const devices = require('./lib/ui/devices.js');
|
||||||
const mse = require('./lib/ui/mscript.js');
|
const mse = require('./lib/ui/mscript.js');
|
||||||
const mscript = require('./lib/mscript');
|
const Mscript = require('./lib/mscript');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue