From 058ee0ba3216c47a290f9f20a0159808eb0077ab Mon Sep 17 00:00:00 2001 From: daurnimator Date: Mon, 15 May 2017 17:37:21 +1000 Subject: src/lapi.js: Fix typo in variable name (chunckname => chunkname) --- src/lapi.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/lapi.js b/src/lapi.js index 885dd8f..f56fc81 100644 --- a/src/lapi.js +++ b/src/lapi.js @@ -888,12 +888,12 @@ const lua_arith = function(L, op) { ** 'load' and 'call' functions (run Lua code) */ -const lua_load = function(L, reader, data, chunckname, mode) { - assert(Array.isArray(chunckname), "lua_load expect an array of byte as chunckname"); +const lua_load = function(L, reader, data, chunkname, mode) { + assert(Array.isArray(chunkname), "lua_load expect an array of byte as chunkname"); assert(mode ? Array.isArray(mode) : true, "lua_load expect an array of byte as mode"); - if (!chunckname) chunckname = [defs.char["?"]]; + if (!chunkname) chunkname = [defs.char["?"]]; let z = new lzio.ZIO(L, reader, data); - let status = ldo.luaD_protectedparser(L, z, chunckname, mode); + let status = ldo.luaD_protectedparser(L, z, chunkname, mode); if (status === TS.LUA_OK) { /* no errors? */ let f = L.stack[L.top - 1].value; /* get newly created function */ if (f.nupvalues >= 1) { /* does it have an upvalue? */ -- cgit v1.2.3-70-g09d2