aboutsummaryrefslogtreecommitdiff
path: root/src/lstate.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lstate.js')
-rw-r--r--src/lstate.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lstate.js b/src/lstate.js
index f9dbf8e..bf49b42 100644
--- a/src/lstate.js
+++ b/src/lstate.js
@@ -7,13 +7,12 @@ class CallInfo {
constructor(func, top, base, previous, next) {
this.func = func;
this.top = top;
- this.base = base;
this.previous = previous;
this.next = next;
this.pcOff = 0;
this.u = {
l: {
- base: null,
+ base: base,
savedpc: []
}
};
@@ -25,10 +24,8 @@ class lua_State {
constructor(cl) {
this.top = 1;
- this.ci = [
- new CallInfo(cl, 1, 1, null, null)
- ];
- this.ci[0].u.l.savedpc = cl.p.code;
+ this.ci = new CallInfo(cl, 1, 1, null, null);
+ this.ci.u.l.savedpc = cl.p.code;
this.ciOff = 0;
this.stack = [
cl