summaryrefslogtreecommitdiff
path: root/src/lundump.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2018-01-18 07:17:59 +1100
committerdaurnimator <quae@daurnimator.com>2018-01-18 07:17:59 +1100
commited7ac85c409ffec65aa86189f49e5d46e7a110bc (patch)
tree9a02ed29652757dcf0ebc81b7db2c7da82474ca5 /src/lundump.js
parent8bedd949c894d61284b3ddd5b3bf989b651b95f8 (diff)
downloadfengari-ed7ac85c409ffec65aa86189f49e5d46e7a110bc.tar.gz
fengari-ed7ac85c409ffec65aa86189f49e5d46e7a110bc.tar.bz2
fengari-ed7ac85c409ffec65aa86189f49e5d46e7a110bc.zip
src/: Destructure when requiring lstring.js
Diffstat (limited to 'src/lundump.js')
-rw-r--r--src/lundump.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lundump.js b/src/lundump.js
index bf1b7e6..bb6cb29 100644
--- a/src/lundump.js
+++ b/src/lundump.js
@@ -7,7 +7,9 @@ const ldo = require('./ldo.js');
const lfunc = require('./lfunc.js');
const lobject = require('./lobject.js');
const lopcodes = require('./lopcodes.js');
-const lstring = require('./lstring.js');
+const {
+ luaS_bless
+} = require('./lstring.js');
const lzio = require('./lzio.js');
const {
@@ -96,7 +98,7 @@ class BytecodeParser {
return null;
}
- return lstring.luaS_bless(this.L, this.read(size));
+ return luaS_bless(this.L, this.read(size));
}
/* creates a mask with 'n' 1 bits at position 'p' */