From ee05d5644a8ae872c9b8c8b437651b3f34d88591 Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Wed, 3 May 2017 15:53:15 +0200 Subject: package.loadlib --- tests/lib-hello.js.mod | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/lib-hello.js.mod (limited to 'tests/lib-hello.js.mod') 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; + } +}; -- cgit v1.2.3-54-g00ecf