diff options
Diffstat (limited to 'src/lapi.js')
-rw-r--r-- | src/lapi.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lapi.js b/src/lapi.js index 36da7c6..72ff554 100644 --- a/src/lapi.js +++ b/src/lapi.js @@ -628,7 +628,7 @@ const lua_rawequal = function(L, index1, index2) { // TODO: reader is ignored because we don't implement ZIO const lua_load = function(L, reader, data, chunckname, mode) { - let z = new llex.MBuffer(data); + let z = new llex.MBuffer(L, data, reader); if (!chunckname) chunckname = "?"; let status = ldo.luaD_protectedparser(L, z, chunckname, mode); if (status === TS.LUA_OK) { /* no errors? */ |