summaryrefslogtreecommitdiff
path: root/tests/ltm.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-02-22 21:26:53 +0100
committerBenoit Giannangeli <giann008@gmail.com>2017-02-22 21:32:55 +0100
commitbf6d1aa5d76abcab1588be46bed406db1e9a81d7 (patch)
treebcc9cd968c242e4b7d194d34c49928995d71d292 /tests/ltm.js
parentfc911817a8401d0696407e91501f0ef65f05b711 (diff)
downloadfengari-bf6d1aa5d76abcab1588be46bed406db1e9a81d7.tar.gz
fengari-bf6d1aa5d76abcab1588be46bed406db1e9a81d7.tar.bz2
fengari-bf6d1aa5d76abcab1588be46bed406db1e9a81d7.zip
Fixed tests to use the new table structure
Diffstat (limited to 'tests/ltm.js')
-rw-r--r--tests/ltm.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/ltm.js b/tests/ltm.js
index 6f9fb8d..0543110 100644
--- a/tests/ltm.js
+++ b/tests/ltm.js
@@ -144,12 +144,12 @@ test('__index function in metatable', function (t) {
L.stack[1].p.code[4].breakpoint = false;
t.ok(
- L.stack[3].ttistable() && !L.stack[3].value.hash.get("__index"),
+ L.stack[3].ttistable() && !L.stack[3].value.get("__index"),
"t is on stack at 3"
);
t.ok(
- L.stack[2].ttistable() && L.stack[2].value.hash.get("__index"),
+ L.stack[2].ttistable() && L.stack[2].value.get("__index"),
"mt is on stack at 2"
);
@@ -235,12 +235,12 @@ test('__newindex function in metatable', function (t) {
L.stack[1].p.code[4].breakpoint = false;
t.ok(
- L.stack[3].ttistable() && !L.stack[3].value.hash.get("__newindex"),
+ L.stack[3].ttistable() && !L.stack[3].value.get("__newindex"),
"t is on stack at 3"
);
t.ok(
- L.stack[2].ttistable() && L.stack[2].value.hash.get("__newindex"),
+ L.stack[2].ttistable() && L.stack[2].value.get("__newindex"),
"mt is on stack at 2"
);
@@ -320,12 +320,12 @@ test('__index table in metatable', function (t) {
L.stack[1].p.code[5].breakpoint = false;
t.ok(
- L.stack[4].ttistable() && !L.stack[4].value.hash.get("__index"),
+ L.stack[4].ttistable() && !L.stack[4].value.get("__index"),
"t is on stack at 4"
);
t.ok(
- L.stack[3].ttistable() && L.stack[3].value.hash.get("__index"),
+ L.stack[3].ttistable() && L.stack[3].value.get("__index"),
"mt is on stack at 3"
);
@@ -409,12 +409,12 @@ test('__newindex table in metatable', function (t) {
L.stack[1].p.code[5].breakpoint = false;
t.ok(
- L.stack[4].ttistable() && !L.stack[4].value.hash.get("__newindex"),
+ L.stack[4].ttistable() && !L.stack[4].value.get("__newindex"),
"t is on stack at 4"
);
t.ok(
- L.stack[3].ttistable() && L.stack[3].value.hash.get("__newindex"),
+ L.stack[3].ttistable() && L.stack[3].value.get("__newindex"),
"mt is on stack at 3"
);