pkhead / luajs

webassembly lua runtime

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

luajs

webassembly lua runtime

current version: 5.4

  • out/lua.js - the javascript runtime
  • out/lua.wasm - the webassembly binary

compiling

get the lua source code here

compile with emscripten using the following command line arguments: -s ALLOW_TABLE_GROWTH=1 --post-js lua-api.js --pre-js pre.js

put var Lua = {}; on the top of the generated javascript file. it does not come with that already defined, so you can encapsulate the emscripten variables via a function that runs immediately.

About

webassembly lua runtime


Languages

Language:JavaScript 67.4%Language:C 32.6%