Skip to content

Register doesn't work #178

@ske2004

Description

@ske2004
let fengari = require('fengari');
const luaconf  = fengari.luaconf;
const lua      = fengari.lua;
const lauxlib  = fengari.lauxlib;
const lualib   = fengari.lualib;


let L = lauxlib.luaL_newstate();

lualib.luaL_openlibs(L)

lua.lua_register(L, "test", (state) => {
    console.log("got here")
    return 0;
})

lauxlib.luaL_dostring(L, "test()")

doesn't output anything

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions