summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-12 15:25:27 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-12 16:54:57 +1000
commit043d0eede8dc8e19ae62b8426c6e0709e39df945 (patch)
treed335a4efa01634daae050f257834aafa0b860a82
parent266c0a526374274b1b07187e52aec6b40d0cab00 (diff)
downloadfengari-043d0eede8dc8e19ae62b8426c6e0709e39df945.tar.gz
fengari-043d0eede8dc8e19ae62b8426c6e0709e39df945.tar.bz2
fengari-043d0eede8dc8e19ae62b8426c6e0709e39df945.zip
src/lstate.js: Remove (unused) CallInfo constructor arguments
-rw-r--r--src/lstate.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/lstate.js b/src/lstate.js
index 7f7bac9..73fb310 100644
--- a/src/lstate.js
+++ b/src/lstate.js
@@ -18,24 +18,24 @@ const BASIC_STACK_SIZE = 2 * defs.LUA_MINSTACK;
class CallInfo {
- constructor(funcOff, func, top, base, previous, next) {
- this.func = func;
- this.funcOff = funcOff;
- this.top = top;
- this.previous = previous;
- this.next = next;
- this.pcOff = 0;
+ constructor() {
+ this.func = null;
+ this.funcOff = NaN;
+ this.top = NaN;
+ this.previous = null;
+ this.next = null;
/* only for Lua functions */
- this.l_base = base; /* base for this function */
- this.l_savedpc = [];
+ this.l_base = NaN; /* base for this function */
+ this.l_savedpc = null;
+ this.pcOff = NaN; /* offset into l_savedpc */
/* only for JS functions */
this.c_k = null; /* continuation in case of yields */
this.c_old_errfunc = null;
this.c_ctx = null; /* context info. in case of yields */
- this.nresults = 0;
- this.callstatus = 0;
+ this.nresults = NaN;
+ this.callstatus = NaN;
}
}