diff src/luan/modules/Boot.luan @ 1434:56fb5cd8228d

cache compiled code in temp files
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 29 Dec 2019 15:25:07 -0700
parents 94a6a209d4e2
children 580ee513a4b7
line wrap: on
line diff
--- a/src/luan/modules/Boot.luan	Tue Dec 24 17:57:47 2019 -0700
+++ b/src/luan/modules/Boot.luan	Sun Dec 29 15:25:07 2019 -0700
@@ -245,11 +245,11 @@
 			return nil
 		end
 		local src = u.read_text()
-		return load(src,file)
+		return load(src,file,true)
 	elseif type(file) == "table" and file.read_text ~= nil then
 		local src = file.read_text()
 		local src_file = file.uri_string or file.to_uri_string()
-		return load(src,src_file)
+		return load(src,src_file,true)
 	else
 		error("bad argument, expected string or uri table but got "..type(file))
 	end