aboutsummaryrefslogtreecommitdiff
path: root/test/lib-hello.js.mod
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2018-04-20 21:16:24 +1000
committerdaurnimator <quae@daurnimator.com>2018-04-20 21:16:24 +1000
commita260f381d30e036b39078fee0295e539067c10a3 (patch)
tree4f3b2ecb264ec8dd29cac74d23223d15d297eb8e /test/lib-hello.js.mod
parentfe9b43374c2e8dc28df0ce460aefaf50b933aaa7 (diff)
parent9f5d4d35de0b88334bba7c11a9e960a19ee0740b (diff)
downloadfengari-a260f381d30e036b39078fee0295e539067c10a3.tar.gz
fengari-a260f381d30e036b39078fee0295e539067c10a3.tar.bz2
fengari-a260f381d30e036b39078fee0295e539067c10a3.zip
Merge branch 'test-with-jest'
Diffstat (limited to 'test/lib-hello.js.mod')
-rw-r--r--test/lib-hello.js.mod8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/lib-hello.js.mod b/test/lib-hello.js.mod
new file mode 100644
index 0000000..d4c02e1
--- /dev/null
+++ b/test/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;
+ }
+};