diff options
author | daurnimator <quae@daurnimator.com> | 2017-06-09 13:01:21 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-06-09 13:01:21 +1000 |
commit | 74dd47160960b3f0faa13dd1b61b64af69fde02e (patch) | |
tree | fee2730a670c4526c1c927230765be3dce49fc95 /src/lundump.js | |
parent | 9b74a453e4a48f0c2028bc15b2c5bdaee6fcd5c7 (diff) | |
download | fengari-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.js | 2 |
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); |