summaryrefslogtreecommitdiff
path: root/src/linit.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-02-23 08:59:35 +0100
committerBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-02-23 10:40:04 +0100
commit567e12ce3f1ef413afa510cb583d6ac8442a7a4a (patch)
treea1911e7291e917de549bbdd2dead60aa513af87f /src/linit.js
parent7c459409b078e38da07e2570a77945fdc0f55c2c (diff)
downloadfengari-567e12ce3f1ef413afa510cb583d6ac8442a7a4a.tar.gz
fengari-567e12ce3f1ef413afa510cb583d6ac8442a7a4a.tar.bz2
fengari-567e12ce3f1ef413afa510cb583d6ac8442a7a4a.zip
coroutines
Diffstat (limited to 'src/linit.js')
-rw-r--r--src/linit.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/linit.js b/src/linit.js
index fc2a54d..d52b640 100644
--- a/src/linit.js
+++ b/src/linit.js
@@ -5,10 +5,13 @@ const assert = require('assert');
const lapi = require('./lapi.js');
const lauxlib = require('./lauxlib.js');
+const lualib = require('./lualib.js');
const lbaselib = require('./lbaselib.js');
+const lcorolib = require('./lcorolib.js');
const loadedlibs = {
- "_G": lbaselib.luaopen_base
+ [lualib.LUA_COLIBNAME]: lcorolib.luaopen_coroutine,
+ "_G": lbaselib.luaopen_base
};
const luaL_openlibs = function(L) {