From ef7bc7c1f8684af04da5d9e91fecf6ce82ecf397 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Wed, 26 Apr 2017 16:56:48 +1000 Subject: All core files reference defs.js instead of lua.js --- src/ldump.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/ldump.js') diff --git a/src/ldump.js b/src/ldump.js index e35d3be..00fab36 100644 --- a/src/ldump.js +++ b/src/ldump.js @@ -2,15 +2,15 @@ const assert = require('assert'); -const lua = require('./lua.js'); +const defs = require('./defs.js'); const lstate = require('./lstate.js'); const lobject = require('./lobject.js'); -const CT = lua.constant_types; +const CT = defs.constant_types; const LUAC_DATA = "\x19\x93\r\n\x1a\n"; const LUAC_INT = 0x5678; const LUAC_NUM = 370.5; -const LUAC_VERSION = Number.parseInt(lua.LUA_VERSION_MAJOR) * 16 + Number.parseInt(lua.LUA_VERSION_MINOR); +const LUAC_VERSION = Number.parseInt(defs.LUA_VERSION_MAJOR) * 16 + Number.parseInt(defs.LUA_VERSION_MINOR); const LUAC_FORMAT = 0; /* this is the official format */ class DumpState { @@ -29,7 +29,7 @@ const DumpBlock = function(b, size, D) { }; const DumpLiteral = function(s, D) { - s = lua.to_luastring(s); + s = defs.to_luastring(s); DumpBlock(s, s.length, D); }; @@ -168,7 +168,7 @@ const DumpFunction = function(f, psource, D) { }; const DumpHeader = function(D) { - DumpLiteral(lua.LUA_SIGNATURE, D); + DumpLiteral(defs.LUA_SIGNATURE, D); DumpByte(LUAC_VERSION, D); DumpByte(LUAC_FORMAT, D); let cdata = LUAC_DATA.split('').map(e => e.charCodeAt(0)); -- cgit v1.2.3-54-g00ecf