summaryrefslogtreecommitdiff
path: root/tests/lib-hello.js.mod
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-05-03 15:53:15 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-05-03 15:53:55 +0200
commitee05d5644a8ae872c9b8c8b437651b3f34d88591 (patch)
treedcd4dc972b59b8b0cec3cdaa4740fa7b44078c19 /tests/lib-hello.js.mod
parent278fd3edb6ead6cd65c2293f823887d19e4fbc8e (diff)
downloadfengari-ee05d5644a8ae872c9b8c8b437651b3f34d88591.tar.gz
fengari-ee05d5644a8ae872c9b8c8b437651b3f34d88591.tar.bz2
fengari-ee05d5644a8ae872c9b8c8b437651b3f34d88591.zip
package.loadlib
Diffstat (limited to 'tests/lib-hello.js.mod')
-rw-r--r--tests/lib-hello.js.mod8
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;
+ }
+};