summaryrefslogtreecommitdiff
path: root/src/linit.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-03-14 07:59:59 +0100
committerBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-03-14 07:59:59 +0100
commitf72e2999b92084a8e2d0cef8bfb3b52607bc8dd5 (patch)
tree936b014f71e33df7cf488de1ec694f25ae11c1d6 /src/linit.js
parent3ec4e9d919173429fa56841ce58b3214f7985077 (diff)
downloadfengari-f72e2999b92084a8e2d0cef8bfb3b52607bc8dd5.tar.gz
fengari-f72e2999b92084a8e2d0cef8bfb3b52607bc8dd5.tar.bz2
fengari-f72e2999b92084a8e2d0cef8bfb3b52607bc8dd5.zip
utf8.offset
Diffstat (limited to 'src/linit.js')
-rw-r--r--src/linit.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/linit.js b/src/linit.js
index f9f8296..4d50f8b 100644
--- a/src/linit.js
+++ b/src/linit.js
@@ -9,6 +9,7 @@ const lcorolib = require('./lcorolib.js');
const lmathlib = require('./lmathlib.js');
const lstrlib = require('./lstrlib.js');
const ltablib = require('./ltablib.js');
+const lutf8lib = require('./lutf8lib.js');
const lualib = require('./lualib.js');
const loadedlibs = {
@@ -16,6 +17,7 @@ const loadedlibs = {
[lualib.LUA_MATHLIBNAME]: lmathlib.luaopen_math,
[lualib.LUA_STRLIBNAME]: lstrlib.luaopen_string,
[lualib.LUA_TABLIBNAME]: ltablib.luaopen_table,
+ [lualib.LUA_UTF8LIBNAME]: lutf8lib.luaopen_utf8,
"_G": lbaselib.luaopen_base
};