summaryrefslogtreecommitdiff
path: root/src/ldo.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2018-01-29 15:01:57 +1100
committerdaurnimator <quae@daurnimator.com>2018-01-29 22:04:34 +1100
commitc58dc886c98c1151967a786b984d9c2c034a152b (patch)
treed153bd5ab6fefacbee1c08a87068b2aa82a1937c /src/ldo.js
parent14f5bb167951ad893760cdb526364e9edf1213ef (diff)
downloadfengari-c58dc886c98c1151967a786b984d9c2c034a152b.tar.gz
fengari-c58dc886c98c1151967a786b984d9c2c034a152b.tar.bz2
fengari-c58dc886c98c1151967a786b984d9c2c034a152b.zip
src/: Import lzio using destructured assignment
Diffstat (limited to 'src/ldo.js')
-rw-r--r--src/ldo.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ldo.js b/src/ldo.js
index ce8f7bc..b138e47 100644
--- a/src/ldo.js
+++ b/src/ldo.js
@@ -45,7 +45,7 @@ const ltm = require('./ltm.js');
const { LUAI_MAXSTACK } = require('./luaconf.js');
const lundump = require('./lundump.js');
const lvm = require('./lvm.js');
-const lzio = require('./lzio.js');
+const { MBuffer } = require('./lzio.js');
const adjust_top = function(L, newtop) {
if (L.top < newtop) {
@@ -692,7 +692,7 @@ const luaD_callnoyield = function(L, off, nResults) {
class SParser {
constructor(z, name, mode) { /* data to 'f_parser' */
this.z = z;
- this.buff = new lzio.MBuffer(); /* dynamic structure used by the scanner */
+ this.buff = new MBuffer(); /* dynamic structure used by the scanner */
this.dyd = new lparser.Dyndata(); /* dynamic structures used by the parser */
this.mode = mode;
this.name = name;