summaryrefslogtreecommitdiff
path: root/src/lundump.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-06-09 13:01:21 +1000
committerdaurnimator <quae@daurnimator.com>2017-06-09 13:01:21 +1000
commit74dd47160960b3f0faa13dd1b61b64af69fde02e (patch)
treefee2730a670c4526c1c927230765be3dce49fc95 /src/lundump.js
parent9b74a453e4a48f0c2028bc15b2c5bdaee6fcd5c7 (diff)
downloadfengari-74dd47160960b3f0faa13dd1b61b64af69fde02e.tar.gz
fengari-74dd47160960b3f0faa13dd1b61b64af69fde02e.tar.bz2
fengari-74dd47160960b3f0faa13dd1b61b64af69fde02e.zip
Add is_luastring function instead of using Array.isArray directly
Diffstat (limited to 'src/lundump.js')
-rw-r--r--src/lundump.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lundump.js b/src/lundump.js
index 3f61cb6..946efa6 100644
--- a/src/lundump.js
+++ b/src/lundump.js
@@ -23,7 +23,7 @@ class BytecodeParser {
this.numberSize = 8;
assert(Z instanceof lzio.ZIO, "BytecodeParser only operates on a ZIO");
- assert(Array.isArray(name));
+ assert(defs.is_luastring(name));
if (name[0] == defs.char["@"] || name[0] == defs.char["="])
this.name = name.slice(1);