From 078851e0281d072ee55a3d2772958d58f6eab8c8 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 29 Jan 2021 17:16:33 -0800 Subject: [PATCH] Fix for Lua 5.4 tweaking return values for require() --- nomsu_environment.lua | 2 +- nomsu_environment.moon | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nomsu_environment.lua b/nomsu_environment.lua index 6671f38..d9013d0 100644 --- a/nomsu_environment.lua +++ b/nomsu_environment.lua @@ -420,7 +420,7 @@ nomsu_environment = Importer({ }) nomsu_environment._ENV = 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" SOURCE_MAP = nomsu_environment.SOURCE_MAP return nomsu_environment diff --git a/nomsu_environment.moon b/nomsu_environment.moon index 0f5f411..f2e14ad 100644 --- a/nomsu_environment.moon +++ b/nomsu_environment.moon @@ -271,7 +271,7 @@ nomsu_environment = Importer{ nomsu_environment._ENV = 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" -- Hacky use of globals: