summaryrefslogtreecommitdiff
path: root/src/lua.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-04-26 18:11:05 +1000
committerdaurnimator <quae@daurnimator.com>2017-04-26 18:11:05 +1000
commit031f528d7b7b7c125fee24f1bd35550ebdcc7060 (patch)
tree136959852ab00f1d22a8e66a91f9951bd933d9b3 /src/lua.js
parentb688ef577a10e8b6f2cf948faaa8d1af70c7949c (diff)
downloadfengari-031f528d7b7b7c125fee24f1bd35550ebdcc7060.tar.gz
fengari-031f528d7b7b7c125fee24f1bd35550ebdcc7060.tar.bz2
fengari-031f528d7b7b7c125fee24f1bd35550ebdcc7060.zip
Export lstate.js functions from lua.js
Diffstat (limited to 'src/lua.js')
-rw-r--r--src/lua.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lua.js b/src/lua.js
index e15654e..13eef9a 100644
--- a/src/lua.js
+++ b/src/lua.js
@@ -1,8 +1,9 @@
/*jshint esversion: 6 */
"use strict";
-const defs = require("./defs.js");
-const lapi = require("./lapi.js");
+const defs = require("./defs.js");
+const lapi = require("./lapi.js");
+const lstate = require("./lstate.js");
module.exports.FENGARI_AUTHORS = defs.FENGARI_AUTHORS;
module.exports.FENGARI_COPYRIGHT = defs.FENGARI_COPYRIGHT;
@@ -115,6 +116,8 @@ module.exports.lua_isuserdata = lapi.lua_isuserdata;
module.exports.lua_len = lapi.lua_len;
module.exports.lua_load = lapi.lua_load;
module.exports.lua_newtable = lapi.lua_newtable;
+module.exports.lua_newstate = lstate.lua_newstate;
+module.exports.lua_newthread = lstate.lua_newthread;
module.exports.lua_newuserdata = lapi.lua_newuserdata;
module.exports.lua_next = lapi.lua_next;
module.exports.lua_pcall = lapi.lua_pcall;