summaryrefslogtreecommitdiff
path: root/src/lapi.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-15 17:37:21 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-15 17:37:21 +1000
commit058ee0ba3216c47a290f9f20a0159808eb0077ab (patch)
tree8a91ce5392e01f181b7b392005d567c92295eac8 /src/lapi.js
parent1b09f4912e312ff39551c2445b41975181b9ed03 (diff)
downloadfengari-058ee0ba3216c47a290f9f20a0159808eb0077ab.tar.gz
fengari-058ee0ba3216c47a290f9f20a0159808eb0077ab.tar.bz2
fengari-058ee0ba3216c47a290f9f20a0159808eb0077ab.zip
src/lapi.js: Fix typo in variable name (chunckname => chunkname)
Diffstat (limited to 'src/lapi.js')
-rw-r--r--src/lapi.js8
1 files changed, 4 insertions, 4 deletions
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? */