From 75117bede868a1c08a7461b82196964e13e6109b Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Mon, 26 May 2014 15:54:08 -0700 Subject: [PATCH] fix(library/kernel_bindings): use standard environment in import_modules Signed-off-by: Leonardo de Moura --- src/library/kernel_bindings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/library/kernel_bindings.cpp b/src/library/kernel_bindings.cpp index 3c0f7aed0..ea232146b 100644 --- a/src/library/kernel_bindings.cpp +++ b/src/library/kernel_bindings.cpp @@ -1182,7 +1182,7 @@ static int import_modules(lua_State * L) { if (is_environment(L, 1)) return import_modules(to_environment(L, 1), L, 2); else - return import_modules(environment(), L, 1); + return import_modules(mk_environment(), L, 1); } static int import_hott_modules(lua_State * L) {