summaryrefslogtreecommitdiff
path: root/src/lstate.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-05 17:33:28 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-05 17:33:28 +1000
commit91be09a37c65b6b9247c7e3cdf4e189627226511 (patch)
treecdc17054b4b2c80cef6dfdaf21b0e713c8c05ef9 /src/lstate.js
parentde072f1a1819d6d4b41205dcc985b5d23bf9c43a (diff)
downloadfengari-91be09a37c65b6b9247c7e3cdf4e189627226511.tar.gz
fengari-91be09a37c65b6b9247c7e3cdf4e189627226511.tar.bz2
fengari-91be09a37c65b6b9247c7e3cdf4e189627226511.zip
Flatten CallInfo union member
Diffstat (limited to 'src/lstate.js')
-rw-r--r--src/lstate.js20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/lstate.js b/src/lstate.js
index 51688e0..4fd2951 100644
--- a/src/lstate.js
+++ b/src/lstate.js
@@ -25,17 +25,15 @@ class CallInfo {
this.previous = previous;
this.next = next;
this.pcOff = 0;
- this.u = {
- l: { /* only for Lua functions */
- base: base, /* base for this function */
- savedpc: []
- },
- c: { /* only for JS functions */
- k: null, /* continuation in case of yields */
- old_errfunc: null,
- ctx: null /* context info. in case of yields */
- }
- };
+
+ /* only for Lua functions */
+ this.l_base = base; /* base for this function */
+ this.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;
}