summaryrefslogtreecommitdiff
path: root/src/lundump.js
diff options
context:
space:
mode:
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);