aboutsummaryrefslogtreecommitdiff
path: root/src/lstate.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-02-13 14:37:01 +0100
committerBenoit Giannangeli <giann008@gmail.com>2017-02-13 21:56:55 +0100
commit59e549150996ec4c8a049f893dad9ec95a4677e9 (patch)
tree2a9d72d5b7863a80a7c145adbb3f1a311b8a1fd9 /src/lstate.js
parentab14ee4aa480b21a6e5c6c4d8cdb1823951ed7c3 (diff)
downloadfengari-59e549150996ec4c8a049f893dad9ec95a4677e9.tar.gz
fengari-59e549150996ec4c8a049f893dad9ec95a4677e9.tar.bz2
fengari-59e549150996ec4c8a049f893dad9ec95a4677e9.zip
Better use of module to avoid cyclic dependencies issues
Diffstat (limited to 'src/lstate.js')
-rw-r--r--src/lstate.js24
1 files changed, 11 insertions, 13 deletions
diff --git a/src/lstate.js b/src/lstate.js
index fcc3eb6..ed299b5 100644
--- a/src/lstate.js
+++ b/src/lstate.js
@@ -41,16 +41,14 @@ class lua_State {
}
-module.exports = {
- lua_State: lua_State,
- CallInfo: CallInfo,
- CIST_OAH: (1<<0), /* original value of 'allowhook' */
- CIST_LUA: (1<<1), /* call is running a Lua function */
- CIST_HOOKED: (1<<2), /* call is running a debug hook */
- CIST_FRESH: (1<<3), /* call is running on a fresh invocation of luaV_execute */
- CIST_YPCALL: (1<<4), /* call is a yieldable protected call */
- CIST_TAIL: (1<<5), /* call was tail called */
- CIST_HOOKYIELD: (1<<6), /* last hook called yielded */
- CIST_LEQ: (1<<7), /* using __lt for __le */
- CIST_FIN: (1<<8) /* call is running a finalizer */
-}; \ No newline at end of file
+module.exports.lua_State = lua_State;
+module.exports.CallInfo = CallInfo;
+module.exports.CIST_OAH = (1<<0); /* original value of 'allowhook' */
+module.exports.CIST_LUA = (1<<1); /* call is running a Lua function */
+module.exports.CIST_HOOKED = (1<<2); /* call is running a debug hook */
+module.exports.CIST_FRESH = (1<<3); /* call is running on a fresh invocation of luaV_execute */
+module.exports.CIST_YPCALL = (1<<4); /* call is a yieldable protected call */
+module.exports.CIST_TAIL = (1<<5); /* call was tail called */
+module.exports.CIST_HOOKYIELD = (1<<6); /* last hook called yielded */
+module.exports.CIST_LEQ = (1<<7); /* using __lt for __le */
+module.exports.CIST_FIN = (1<<8); /* call is running a finalizer */ \ No newline at end of file