diff options
author | daurnimator <quae@daurnimator.com> | 2018-01-29 15:01:57 +1100 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2018-01-29 22:04:34 +1100 |
commit | c58dc886c98c1151967a786b984d9c2c034a152b (patch) | |
tree | d153bd5ab6fefacbee1c08a87068b2aa82a1937c /src/ldo.js | |
parent | 14f5bb167951ad893760cdb526364e9edf1213ef (diff) | |
download | fengari-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.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |