summaryrefslogtreecommitdiff
path: root/src/lundump.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-11-12 16:01:51 +1100
committerdaurnimator <quae@daurnimator.com>2017-11-12 16:22:28 +1100
commit5812c42e7bb680592e60454b003f228dfe95869a (patch)
treeb9aecff7655d6089a77bfabd45f81b2b9dc1c528 /src/lundump.js
parent542c431989bff3fc3a6687f182a8c61a7861efd9 (diff)
downloadfengari-5812c42e7bb680592e60454b003f228dfe95869a.tar.gz
fengari-5812c42e7bb680592e60454b003f228dfe95869a.tar.bz2
fengari-5812c42e7bb680592e60454b003f228dfe95869a.zip
Add internal function defs.luastring_cmp for string equality checks
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 61697b6..b25a955 100644
--- a/src/lundump.js
+++ b/src/lundump.js
@@ -214,7 +214,7 @@ class BytecodeParser {
checkliteral(s, msg) {
let buff = this.read(s.length);
- if (buff.join() !== s.join())
+ if (!defs.luastring_cmp(buff, s))
this.error(msg);
}