diff options
-rw-r--r-- | src/lapi.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lapi.js b/src/lapi.js index 2341722..e9994f5 100644 --- a/src/lapi.js +++ b/src/lapi.js @@ -255,6 +255,7 @@ const lua_pushstring = function (L, s) { else { let ts = lstring.luaS_new(L, s); lobject.setsvalue2s(L, L.top, ts); + s = ts.getstr(); /* internal copy */ } L.top++; assert(L.top <= L.ci.top, "stack overflow"); |