Fix for Lua 5.4 tweaking return values for require()

This commit is contained in:
Bruce Hill 2021-01-29 17:16:33 -08:00
parent da2955f95e
commit 078851e028
2 changed files with 2 additions and 2 deletions

View File

@ -420,7 +420,7 @@ nomsu_environment = Importer({
}) })
nomsu_environment._ENV = nomsu_environment nomsu_environment._ENV = nomsu_environment
nomsu_environment._G = nomsu_environment nomsu_environment._G = nomsu_environment
nomsu_environment.COMPILE_RULES = Importer(require('bootstrap')) nomsu_environment.COMPILE_RULES = Importer(require('bootstrap'), nil)
nomsu_environment.MODULE_NAME = "nomsu" nomsu_environment.MODULE_NAME = "nomsu"
SOURCE_MAP = nomsu_environment.SOURCE_MAP SOURCE_MAP = nomsu_environment.SOURCE_MAP
return nomsu_environment return nomsu_environment

View File

@ -271,7 +271,7 @@ nomsu_environment = Importer{
nomsu_environment._ENV = nomsu_environment nomsu_environment._ENV = nomsu_environment
nomsu_environment._G = nomsu_environment nomsu_environment._G = nomsu_environment
nomsu_environment.COMPILE_RULES = Importer(require('bootstrap')) nomsu_environment.COMPILE_RULES = Importer(require('bootstrap'), nil)
nomsu_environment.MODULE_NAME = "nomsu" nomsu_environment.MODULE_NAME = "nomsu"
-- Hacky use of globals: -- Hacky use of globals: