diff options
author | Benoit Giannangeli <benoit.giannangeli@boursorama.fr> | 2017-02-24 15:05:44 +0100 |
---|---|---|
committer | Benoit Giannangeli <benoit.giannangeli@boursorama.fr> | 2017-02-24 15:53:08 +0100 |
commit | 0a006ad403733a85abe5be3f242c0264a4556afb (patch) | |
tree | 008b1cf32172a0fc17ddf2ff369a1b77e1618bc4 /src/linit.js | |
parent | fc79b2ae7a85af1b892a103340b9465274153c60 (diff) | |
download | fengari-0a006ad403733a85abe5be3f242c0264a4556afb.tar.gz fengari-0a006ad403733a85abe5be3f242c0264a4556afb.tar.bz2 fengari-0a006ad403733a85abe5be3f242c0264a4556afb.zip |
math.abs, math.sin, math.cos, math.tan, math.asin, math.acos, math.atan
Diffstat (limited to 'src/linit.js')
-rw-r--r-- | src/linit.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/linit.js b/src/linit.js index eb8caf2..36c0121 100644 --- a/src/linit.js +++ b/src/linit.js @@ -9,11 +9,13 @@ const lualib = require('./lualib.js'); const lbaselib = require('./lbaselib.js'); const lcorolib = require('./lcorolib.js'); const ltablib = require('./ltablib.js'); +const lmathlib = require('./lmathlib.js'); const loadedlibs = { - [lualib.LUA_TABLIBNAME]: ltablib.luaopen_table, - [lualib.LUA_COLIBNAME]: lcorolib.luaopen_coroutine, - "_G": lbaselib.luaopen_base + [lualib.LUA_MATHLIBNAME]: lmathlib.luaopen_math, + [lualib.LUA_TABLIBNAME]: ltablib.luaopen_table, + [lualib.LUA_COLIBNAME]: lcorolib.luaopen_coroutine, + "_G": lbaselib.luaopen_base }; const luaL_openlibs = function(L) { |