diff options
author | Benoit Giannangeli <benoit.giannangeli@boursorama.fr> | 2017-02-22 17:24:42 +0100 |
---|---|---|
committer | Benoit Giannangeli <benoit.giannangeli@boursorama.fr> | 2017-02-22 17:24:42 +0100 |
commit | 4b764aa6a84289f04acde43108425c392d2e4806 (patch) | |
tree | eac70ef0e59290a1af12eabed20489c7529a8636 /tests/lbaselib.js | |
parent | 9ff3e69b37f7b7603056b684a19b1dd8c641c8d5 (diff) | |
download | fengari-4b764aa6a84289f04acde43108425c392d2e4806.tar.gz fengari-4b764aa6a84289f04acde43108425c392d2e4806.tar.bz2 fengari-4b764aa6a84289f04acde43108425c392d2e4806.zip |
Tables are JS Maps, lua_next
Diffstat (limited to 'tests/lbaselib.js')
-rw-r--r-- | tests/lbaselib.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lbaselib.js b/tests/lbaselib.js index 21d18aa..d71e3ab 100644 --- a/tests/lbaselib.js +++ b/tests/lbaselib.js @@ -426,19 +426,19 @@ test('select', function (t) { }, "JS Lua program ran without error"); t.deepEqual( - lapi.lua_topointer(L, -3).array.map(e => e.value), + lapi.lua_topointer(L, -3).map(e => e.value), [3], "Correct element(s) on the stack" ); t.deepEqual( - lapi.lua_topointer(L, -2).array.map(e => e.value), + lapi.lua_topointer(L, -2).map(e => e.value), [2, 3], "Correct element(s) on the stack" ); t.deepEqual( - lapi.lua_topointer(L, -1).array.map(e => e.value), + lapi.lua_topointer(L, -1).map(e => e.value), [2, 3], "Correct element(s) on the stack" ); |