From b48aa97dd1127ae432ef8d7a4588cee2e1bec12c Mon Sep 17 00:00:00 2001 From: Li Jin Date: Sun, 26 Sep 2021 16:59:01 +0800 Subject: fix wasm issue. --- src/yue_wasm.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/yue_wasm.cpp b/src/yue_wasm.cpp index fd8b150..3a9f9ad 100644 --- a/src/yue_wasm.cpp +++ b/src/yue_wasm.cpp @@ -11,6 +11,8 @@ static void openlibs(void* state) { lua_State* L = static_cast(state); luaL_openlibs(L); luaopen_yue(L); + luaL_requiref(L, "yue", luaopen_yue, 1); + lua_pop(L, 1); } #define YUE_ARGS nullptr,openlibs -- cgit v1.2.3-55-g6feb