aboutsummaryrefslogtreecommitdiff
path: root/src/lstate.js
blob: 979b89c2a82aafed48b592845337aef3943926b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*jshint esversion: 6 */
"use strict";

const thread_status = require('./lua.js').thread_status;

class lua_State {

    constructor() {
        this.next = null;
        this.stack = null;
        this.ci = null;
        this.nci = 0;
        this.stacksize = 0;
        this.twups = [this];
        this.errorJmp = null;
        this.hook = null;
        this.allowhook = true;
        this.openupval = null;
        this.nny = 1;
        this.status = thread_status.LUA_OK;
        this.errfunc = 0;
    }

}

module.exports = {
    lua_State: lua_State
};