summaryrefslogtreecommitdiff
path: root/src/ltm.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-03-14 08:30:45 +0100
committerBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-03-14 09:09:52 +0100
commit0d51854b27836c485d0bac7a1a28c19fc61496f1 (patch)
tree0e5fc99d7b205b79ed10eab1f4ce49aa39f7ae59 /src/ltm.js
parentf72e2999b92084a8e2d0cef8bfb3b52607bc8dd5 (diff)
downloadfengari-0d51854b27836c485d0bac7a1a28c19fc61496f1.tar.gz
fengari-0d51854b27836c485d0bac7a1a28c19fc61496f1.tar.bz2
fengari-0d51854b27836c485d0bac7a1a28c19fc61496f1.zip
Use emscripten's utf8tojs string function
Diffstat (limited to 'src/ltm.js')
-rw-r--r--src/ltm.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ltm.js b/src/ltm.js
index 6377c93..e48ff23 100644
--- a/src/ltm.js
+++ b/src/ltm.js
@@ -89,7 +89,7 @@ const ttypename = function(t) {
const luaT_init = function(L) {
L.l_G.tmname = [];
for (let event in TMS) {
- let name = lua.to_luastring(TMS[event], TMS[event].length);
+ let name = lua.to_luastring(TMS[event]);
L.l_G.tmname.push(L.l_G.intern(name)); // Strings are already interned by JS
}
};