diff core/src/luan/impl/SetTableEntry.java @ 503:92c3d22745b8

make _ENV optional
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 20 May 2015 23:24:46 -0600
parents b48cfa14ba60
children e3fb9768dbb3
line wrap: on
line diff
--- a/core/src/luan/impl/SetTableEntry.java	Tue May 19 17:57:20 2015 -0600
+++ b/core/src/luan/impl/SetTableEntry.java	Wed May 20 23:24:46 2015 -0600
@@ -29,7 +29,7 @@
 			tbl.put(luan,key,value);
 			return;
 		}
-		if( t != null && luan.currentEnvironment().hasJava() )
+		if( t != null && luan.hasJava() )
 			JavaLuan.__new_index(luan,t,key,value);
 		else
 			throw luan.bit(el).exception( "attempt to index '"+tableExpr.el().text()+"' (a " + Luan.type(t) + " value)" );