summaryrefslogtreecommitdiff
path: root/src/llex.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/llex.js')
-rw-r--r--src/llex.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llex.js b/src/llex.js
index 220f45d..2e37eca 100644
--- a/src/llex.js
+++ b/src/llex.js
@@ -208,7 +208,7 @@ const luaX_newstring = function(ls, str) {
o.setbvalue(true);
} else { /* string already present */
/* HACK: Workaround lack of ltable 'keyfromval' */
- let tpair = ls.h.strong.get(lstring.luaS_hash(ts));
+ let tpair = ls.h.strong.get(lstring.luaS_hashlongstr(ts));
assert(tpair.value == o);
ts = tpair.key.tsvalue(); /* re-use value previously stored */
}