diff src/luan/lib/PickleCon.java @ 150:f35c50027985

make load() more consistent git-svn-id: https://luan-java.googlecode.com/svn/trunk@151 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Mon, 16 Jun 2014 10:11:48 +0000
parents f99fd64291b3
children
line wrap: on
line diff
--- a/src/luan/lib/PickleCon.java	Mon Jun 16 05:47:54 2014 +0000
+++ b/src/luan/lib/PickleCon.java	Mon Jun 16 10:11:48 2014 +0000
@@ -27,7 +27,7 @@
 	private final DataOutputStream out;
 	private final List<byte[]> binaries = new ArrayList<byte[]>();
 	String src;
-	private final LuanTable env;
+	private final LuanTable env = new LuanTable();
 
 	PickleCon(LuanState luan,DataInputStream in,DataOutputStream out) {
 		this.in = in;
@@ -40,7 +40,6 @@
 			throw new RuntimeException(e);
 		}
 		this.ioModule = (LuanTable)luan.loaded().get("Io");
-		this.env = new LuanTable(luan.global());
 
 		this.out = out;
 	}