From 456ab7b69f88859683c60cc2261e70d6dbadd8e8 Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Wed, 29 Mar 2017 14:39:57 +0200 Subject: 8-bit string internally tests Lexing/Parsing is done on byte rather than js strings --- src/ltm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ltm.js') diff --git a/src/ltm.js b/src/ltm.js index d2df961..4a90f6d 100644 --- a/src/ltm.js +++ b/src/ltm.js @@ -53,7 +53,7 @@ const luaT_typenames_ = [ "userdata", "thread", "proto" /* this last case is used for tests only */ -]; +].map(e => lua.to_luastring(e)); const ttypename = function(t) { return luaT_typenames_[t + 1]; -- cgit v1.2.3-54-g00ecf