diff options
Diffstat (limited to 'src/ltable.js')
-rw-r--r-- | src/ltable.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ltable.js b/src/ltable.js index de4c686..a2987d3 100644 --- a/src/ltable.js +++ b/src/ltable.js @@ -53,7 +53,7 @@ const luaH_getint = function(t, key) { }; const luaH_getstr = function(t, key) { - assert(Array.isArray(key)); + assert(key instanceof lstring.TString); return getgeneric(t, lstring.luaS_hash(key)); }; |