diff options
Diffstat (limited to 'src/lobject.js')
-rw-r--r-- | src/lobject.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lobject.js b/src/lobject.js index f748416..bd234a1 100644 --- a/src/lobject.js +++ b/src/lobject.js @@ -204,6 +204,18 @@ class CClosure extends TValue { } +/* +** Description of a local variable for function prototypes +** (used for debug information) +*/ +class LocVar { + constructor() { + this.varname = null; + this.startpc = NaN; /* first point where variable is active */ + this.endpc = NaN; /* first point where variable is dead */ + } +} + const RETS = "..."; const PRE = "[string \""; const POS = "\"]"; @@ -400,6 +412,7 @@ const numarith = function(L, op, v1, v2) { module.exports.CClosure = CClosure; module.exports.LClosure = LClosure; +module.exports.LocVar = LocVar; module.exports.TValue = TValue; module.exports.Table = Table; module.exports.UTF8BUFFSZ = UTF8BUFFSZ; |