From 91be09a37c65b6b9247c7e3cdf4e189627226511 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Fri, 5 May 2017 17:33:28 +1000 Subject: Flatten CallInfo union member --- src/lstate.js | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'src/lstate.js') 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; } -- cgit v1.2.3-54-g00ecf