diff options
Diffstat (limited to 'tests/lib-hello.js.mod')
-rw-r--r-- | tests/lib-hello.js.mod | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/lib-hello.js.mod b/tests/lib-hello.js.mod new file mode 100644 index 0000000..d4c02e1 --- /dev/null +++ b/tests/lib-hello.js.mod @@ -0,0 +1,8 @@ +const lua = require('../src/lua.js'); + +module.exports = { + "hello": function(L) { + lua.lua_pushliteral(L, "hello from js lib"); + return 1; + } +}; |