diff options
author | daurnimator <quae@daurnimator.com> | 2018-01-18 08:07:10 +1100 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2018-01-18 08:07:10 +1100 |
commit | bb5c73baee21cec5d2553c46b2dbb4fd35f80019 (patch) | |
tree | 62b261baf093d83613a73446ab81e5fdee78f923 /src | |
parent | 583bb2e168292f0415bf1382186f5599a7a0385c (diff) | |
download | fengari-bb5c73baee21cec5d2553c46b2dbb4fd35f80019.tar.gz fengari-bb5c73baee21cec5d2553c46b2dbb4fd35f80019.tar.bz2 fengari-bb5c73baee21cec5d2553c46b2dbb4fd35f80019.zip |
src/ltm.js: Use lua_assert instead of assert
Diffstat (limited to 'src')
-rw-r--r-- | src/ltm.js | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,8 +1,7 @@ "use strict"; -const assert = require('assert'); - const defs = require('./defs.js'); +const { lua_assert } = require('./llimits.js'); const lobject = require('./lobject.js'); const ldo = require('./ldo.js'); const lstate = require('./lstate.js'); @@ -175,7 +174,7 @@ const fasttm = function(l, et, e) { const luaT_gettm = function(events, event, ename) { const tm = ltable.luaH_getstr(events, ename); - assert(event <= TMS.TM_EQ); + lua_assert(event <= TMS.TM_EQ); if (tm.ttisnil()) { /* no tag method? */ events.flags |= 1<<event; /* cache this fact */ return null; |