diff options
Diffstat (limited to 'tests/test-suite/ltests.js')
-rw-r--r-- | tests/test-suite/ltests.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test-suite/ltests.js b/tests/test-suite/ltests.js index 0b47f65..4cadcd4 100644 --- a/tests/test-suite/ltests.js +++ b/tests/test-suite/ltests.js @@ -12,6 +12,7 @@ const { } = require("../../src/fengaricore.js"); const ljstype = require('../../src/ljstype.js'); const lopcodes = require('../../src/lopcodes.js'); +const { pushobj2s } = require('../../src/lobject.js'); const sprintf = require('sprintf-js').sprintf; const delimits = [" ", "\t", "\n", ",", ";"].map(e => e.charCodeAt(0)); @@ -781,7 +782,7 @@ const setnameval = function(L, name, val) { }; const pushobject = function(L, o){ - L.stack[L.top++] = o; + pushobj2s(L, o); assert(L.top <= L.ci.top, "stack overflow"); }; |