Mercurial Hosting > luan
comparison src/luan/interp/SetTableEntry.java @ 112:f5af13062b10
fix previous rev
git-svn-id: https://luan-java.googlecode.com/svn/trunk@113 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Fri, 23 May 2014 22:52:39 +0000 |
parents | 6ca02b188dba |
children |
comparison
equal
deleted
inserted
replaced
111:2428ecfed375 | 112:f5af13062b10 |
---|---|
37 if( h==null ) | 37 if( h==null ) |
38 throw luan.bit(se).exception( "attempt to index a " + Luan.type(t) + " value" ); | 38 throw luan.bit(se).exception( "attempt to index a " + Luan.type(t) + " value" ); |
39 } | 39 } |
40 if( h instanceof LuanFunction ) { | 40 if( h instanceof LuanFunction ) { |
41 LuanFunction fn = (LuanFunction)h; | 41 LuanFunction fn = (LuanFunction)h; |
42 luan.bit(se).call(fn,"__newindex",t,key,value); | 42 luan.bit(se).call(fn,"__newindex",new Object[]{t,key,value}); |
43 return; | 43 return; |
44 } | 44 } |
45 newindex(luan,h,key,value); | 45 newindex(luan,h,key,value); |
46 } | 46 } |
47 | 47 |