We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
-- test.lua --
require 'a' function getAA() local aa = aa() return aa end
-- a.lua --
function aa() return 'aa' end
-- test.js --
import { LuaFactory } from 'wasmoon' import fs from 'fs' async function main() { const factory = new LuaFactory() const lua = await factory.createEngine() try { const lua_str = fs.readFileSync('test.lua', 'utf-8') await lua.doString(lua_str) const getAA = lua.global.get('getAA') console.log(getAA()) } finally { lua.global.close() } } main()
-- error report -- Uncaught Error Error: [string "require 'a'..."]:1: module 'a' not found
The text was updated successfully, but these errors were encountered:
No branches or pull requests
-- test.lua --
-- a.lua --
-- test.js --
-- error report --
Uncaught Error Error: [string "require 'a'..."]:1: module 'a' not found
The text was updated successfully, but these errors were encountered: