summaryrefslogtreecommitdiff
path: root/tests/lbaselib.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-02 16:37:50 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-03 12:20:43 +1000
commitcb0295e52870f22c5dd1a1726342b8d4b147b1c5 (patch)
tree3655d4d6f4873ed246c00c0eb6680a06124f3046 /tests/lbaselib.js
parent50820e54d065bffbb504e6b20b6c27802e102c25 (diff)
downloadfengari-cb0295e52870f22c5dd1a1726342b8d4b147b1c5.tar.gz
fengari-cb0295e52870f22c5dd1a1726342b8d4b147b1c5.tar.bz2
fengari-cb0295e52870f22c5dd1a1726342b8d4b147b1c5.zip
Refactor table implementation
Diffstat (limited to 'tests/lbaselib.js')
-rw-r--r--tests/lbaselib.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lbaselib.js b/tests/lbaselib.js
index 137bc2f..0a77e5b 100644
--- a/tests/lbaselib.js
+++ b/tests/lbaselib.js
@@ -417,19 +417,19 @@ test('select', function (t) {
}, "JS Lua program ran without error");
t.deepEqual(
- [...lua.lua_topointer(L, -3).entries()].map(e => e[1].value),
+ [...lua.lua_topointer(L, -3).strong.entries()].map(e => e[1].value.value),
[3],
"Correct element(s) on the stack"
);
t.deepEqual(
- [...lua.lua_topointer(L, -2).entries()].map(e => e[1].value).sort(),
+ [...lua.lua_topointer(L, -2).strong.entries()].map(e => e[1].value.value).sort(),
[2, 3],
"Correct element(s) on the stack"
);
t.deepEqual(
- [...lua.lua_topointer(L, -1).entries()].map(e => e[1].value).sort(),
+ [...lua.lua_topointer(L, -1).strong.entries()].map(e => e[1].value.value).sort(),
[2, 3],
"Correct element(s) on the stack"
);