diff options
author | Benoit Giannangeli <benoit.giannangeli@boursorama.fr> | 2017-02-14 12:56:44 +0100 |
---|---|---|
committer | Benoit Giannangeli <benoit.giannangeli@boursorama.fr> | 2017-02-14 12:56:44 +0100 |
commit | 238009cd056acc3277b38eb6520c1afee019bb26 (patch) | |
tree | ee13afbc9694a211cf79c0ab97c294c22b9cb9f7 /src/ltm.js | |
parent | 9e3acbbb3f0dc45cc1444645cd1b4585ef911017 (diff) | |
download | fengari-238009cd056acc3277b38eb6520c1afee019bb26.tar.gz fengari-238009cd056acc3277b38eb6520c1afee019bb26.tar.bz2 fengari-238009cd056acc3277b38eb6520c1afee019bb26.zip |
__newindex
Diffstat (limited to 'src/ltm.js')
-rw-r--r-- | src/ltm.js | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1,6 +1,8 @@ /*jshint esversion: 6 */ "use strict"; +const assert = require('assert'); + const lobject = require('./lobject.js'); const TValue = lobject.TValue; const Table = lobject.Table; @@ -56,6 +58,7 @@ const luaT_callTM = function(L, f, p1, p2, p3, hasres) { ldo.luaD_callnoyield(L, func, hasres); if (hasres) { + assert(typeof result === "number"); L.stack[result] = L.stack[--L.top]; } }; |