summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2018-01-18 08:07:10 +1100
committerdaurnimator <quae@daurnimator.com>2018-01-18 08:07:10 +1100
commitbb5c73baee21cec5d2553c46b2dbb4fd35f80019 (patch)
tree62b261baf093d83613a73446ab81e5fdee78f923 /src
parent583bb2e168292f0415bf1382186f5599a7a0385c (diff)
downloadfengari-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.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ltm.js b/src/ltm.js
index 5e05f65..4741772 100644
--- a/src/ltm.js
+++ b/src/ltm.js
@@ -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;