From 5812c42e7bb680592e60454b003f228dfe95869a Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sun, 12 Nov 2017 16:01:51 +1100 Subject: Add internal function defs.luastring_cmp for string equality checks --- src/lundump.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lundump.js') 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); } -- cgit v1.2.3-54-g00ecf