diff core/src/luan/LuanState.java @ 400:8f1be9704726

change LuanState.newStandard() to newInstance() which doesn't preload anything
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 28 Apr 2015 13:12:17 -0600
parents 39c4ac11a58a
children d55e873e1f0d
line wrap: on
line diff
--- a/core/src/luan/LuanState.java	Mon Apr 27 16:59:35 2015 -0600
+++ b/core/src/luan/LuanState.java	Tue Apr 28 13:12:17 2015 -0600
@@ -46,15 +46,8 @@
 		return PackageLuan.require(this,modName);
 	}
 
-	public static LuanState newStandard() {
-		try {
-			LuanState luan = LuanCompiler.newLuanState();
-			luan.require("luan:Luan");
-			luan.require("luan:Io");
-			return luan;
-		} catch(LuanException e) {
-			throw new RuntimeException(e);
-		}
+	public static LuanState newInstance() {
+		return LuanCompiler.newLuanState();
 	}
 
 	public final Object eval(String cmd) throws LuanException {