diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lapi.js | 1 | ||||
-rw-r--r-- | src/lauxlib.js | 2 | ||||
-rw-r--r-- | src/lbaselib.js | 2 | ||||
-rw-r--r-- | src/lcode.js | 1 | ||||
-rw-r--r-- | src/lcorolib.js | 3 | ||||
-rw-r--r-- | src/ldebug.js | 1 | ||||
-rw-r--r-- | src/ldump.js | 4 | ||||
-rw-r--r-- | src/linit.js | 2 | ||||
-rw-r--r-- | src/ljstype.js | 2 | ||||
-rw-r--r-- | src/llex.js | 1 | ||||
-rw-r--r-- | src/lmathlib.js | 2 | ||||
-rw-r--r-- | src/loslib.js | 2 | ||||
-rw-r--r-- | src/ltable.js | 3 | ||||
-rw-r--r-- | src/ltablib.js | 3 | ||||
-rw-r--r-- | src/ltm.js | 1 | ||||
-rw-r--r-- | src/lutf8lib.js | 2 | ||||
-rw-r--r-- | src/lvm.js | 33 |
17 files changed, 15 insertions, 50 deletions
diff --git a/src/lapi.js b/src/lapi.js index ac13f87..9dbebad 100644 --- a/src/lapi.js +++ b/src/lapi.js @@ -12,7 +12,6 @@ const lobject = require('./lobject.js'); const lstate = require('./lstate.js'); const ltm = require('./ltm.js'); const luaconf = require('./luaconf.js'); -const lundump = require('./lundump.js'); const lvm = require('./lvm.js'); const ltable = require('./ltable.js'); const MAXUPVAL = lfunc.MAXUPVAL; diff --git a/src/lauxlib.js b/src/lauxlib.js index 2300391..acdecbf 100644 --- a/src/lauxlib.js +++ b/src/lauxlib.js @@ -1,8 +1,6 @@ /*jshint esversion: 6 */ "use strict"; -const assert = require('assert'); - const lapi = require('./lapi.js'); const lua = require('./lua.js'); const lobject = require('./lobject.js'); diff --git a/src/lbaselib.js b/src/lbaselib.js index a1a8925..fe329d6 100644 --- a/src/lbaselib.js +++ b/src/lbaselib.js @@ -1,7 +1,5 @@ "use strict"; -const assert = require('assert'); - const lua = require('./lua.js'); const lauxlib = require('./lauxlib.js'); const lobject = require('./lobject.js'); diff --git a/src/lcode.js b/src/lcode.js index 112504f..19718f3 100644 --- a/src/lcode.js +++ b/src/lcode.js @@ -4,7 +4,6 @@ const assert = require('assert'); const defs = require('./defs.js'); const llex = require('./llex.js'); -const llimit = require('./llimit.js'); const lobject = require('./lobject.js'); const lopcode = require('./lopcodes.js'); const lparser = require('./lparser.js'); diff --git a/src/lcorolib.js b/src/lcorolib.js index 6238c6c..a72d22b 100644 --- a/src/lcorolib.js +++ b/src/lcorolib.js @@ -1,10 +1,7 @@ "use strict"; -const assert = require('assert'); - const lua = require('./lua.js'); const lauxlib = require('./lauxlib.js'); -const lobject = require('./lobject.js'); const getco = function(L) { let co = lua.lua_tothread(L, 1); diff --git a/src/ldebug.js b/src/ldebug.js index 7add30f..27caf8b 100644 --- a/src/ldebug.js +++ b/src/ldebug.js @@ -12,7 +12,6 @@ const OC = require('./lopcodes.js'); const lvm = require('./lvm.js'); const ltm = require('./ltm.js'); const lfunc = require('./lfunc.js'); -const lapi = require('./lapi.js'); const TValue = lobject.TValue; const CT = defs.constant_types; const TS = defs.thread_status; diff --git a/src/ldump.js b/src/ldump.js index 00fab36..f36e18e 100644 --- a/src/ldump.js +++ b/src/ldump.js @@ -1,10 +1,6 @@ "use strict"; -const assert = require('assert'); - const defs = require('./defs.js'); -const lstate = require('./lstate.js'); -const lobject = require('./lobject.js'); const CT = defs.constant_types; const LUAC_DATA = "\x19\x93\r\n\x1a\n"; diff --git a/src/linit.js b/src/linit.js index fa827cb..3d18e2f 100644 --- a/src/linit.js +++ b/src/linit.js @@ -1,7 +1,5 @@ "use strict"; -const assert = require('assert'); - const lua = require('./lua.js'); const lapi = require('./lapi.js'); const lauxlib = require('./lauxlib.js'); diff --git a/src/ljstype.js b/src/ljstype.js index 6f371bb..424140e 100644 --- a/src/ljstype.js +++ b/src/ljstype.js @@ -1,7 +1,5 @@ "use strict"; -const assert = require('assert'); - const lisdigit = function(c) { return /^\d$/.test(String.fromCharCode(c)); }; diff --git a/src/llex.js b/src/llex.js index 8d26389..c19452c 100644 --- a/src/llex.js +++ b/src/llex.js @@ -4,7 +4,6 @@ const assert = require('assert'); const defs = require('./defs.js'); const lapi = require('./lapi.js'); -const lauxlib = require('./lauxlib.js'); const ldebug = require('./ldebug.js'); const ldo = require('./ldo.js'); const ljstype = require('./ljstype'); diff --git a/src/lmathlib.js b/src/lmathlib.js index 6c666b1..49a1abe 100644 --- a/src/lmathlib.js +++ b/src/lmathlib.js @@ -1,11 +1,9 @@ "use strict"; -const assert = require('assert'); const seedrandom = require('seedrandom'); const lua = require('./lua.js'); const lauxlib = require('./lauxlib.js'); -const lstate = require('./lstate.js'); const llimit = require('./llimit.js'); const luaconf = require('./luaconf.js'); diff --git a/src/loslib.js b/src/loslib.js index e577b1b..3892d35 100644 --- a/src/loslib.js +++ b/src/loslib.js @@ -1,7 +1,5 @@ "use strict"; -const assert = require('assert'); - const lua = require('./lua.js'); const lauxlib = require('./lauxlib.js'); const llimit = require('./llimit.js'); diff --git a/src/ltable.js b/src/ltable.js index a0ff59f..7972f08 100644 --- a/src/ltable.js +++ b/src/ltable.js @@ -1,11 +1,8 @@ /*jshint esversion: 6 */ "use strict"; -const assert = require('assert'); - const defs = require('./defs.js'); const lobject = require('./lobject.js'); -const nil = require('./ldo.js').nil; const CT = defs.constant_types; const TValue = lobject.TValue; diff --git a/src/ltablib.js b/src/ltablib.js index ba3d374..bc283ae 100644 --- a/src/ltablib.js +++ b/src/ltablib.js @@ -1,11 +1,8 @@ "use strict"; -const assert = require('assert'); - const lua = require('./lua.js'); const lapi = require('./lapi.js'); const lauxlib = require('./lauxlib.js'); -const lstate = require('./lstate.js'); const llimit = require('./llimit.js'); const lobject = require('./lobject.js'); @@ -5,7 +5,6 @@ const assert = require('assert'); const defs = require('./defs.js'); const lobject = require('./lobject.js'); -const TValue = lobject.TValue; const ldo = require('./ldo.js'); const lstate = require('./lstate.js'); const ldebug = require('./ldebug.js'); diff --git a/src/lutf8lib.js b/src/lutf8lib.js index af5f960..a35de63 100644 --- a/src/lutf8lib.js +++ b/src/lutf8lib.js @@ -1,7 +1,5 @@ "use strict"; -const assert = require('assert'); - const lua = require('./lua.js'); const lapi = require('./lapi.js'); const lauxlib = require('./lauxlib.js'); @@ -3,24 +3,21 @@ const assert = require('assert'); -const defs = require('./defs.js'); -const BytecodeParser = require('./lundump.js'); -const OC = require('./lopcodes.js'); -const luaconf = require('./luaconf.js'); -const lobject = require('./lobject.js'); -const TValue = lobject.TValue; -const LClosure = lobject.LClosure; -const lfunc = require('./lfunc.js'); -const UpVal = lfunc.UpVal; -const lstate = require('./lstate.js'); -const CallInfo = lstate.CallInfo; -const llimit = require('./llimit.js'); -const ldo = require('./ldo.js'); -const ltm = require('./ltm.js'); -const ltable = require('./ltable.js'); -const ldebug = require('./ldebug.js'); -const CT = defs.constant_types; -const LUA_MULTRET = defs.LUA_MULTRET; +const defs = require('./defs.js'); +const OC = require('./lopcodes.js'); +const luaconf = require('./luaconf.js'); +const lobject = require('./lobject.js'); +const TValue = lobject.TValue; +const LClosure = lobject.LClosure; +const lfunc = require('./lfunc.js'); +const lstate = require('./lstate.js'); +const llimit = require('./llimit.js'); +const ldo = require('./ldo.js'); +const ltm = require('./ltm.js'); +const ltable = require('./ltable.js'); +const ldebug = require('./ldebug.js'); +const CT = defs.constant_types; +const LUA_MULTRET = defs.LUA_MULTRET; /* ** finish execution of an opcode interrupted by an yield |