Mercurial Hosting > luan
comparison src/luan/interp/IndexExpr.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 |
---|---|
32 if( h==null ) | 32 if( h==null ) |
33 throw luan.bit(op1.se()).exception( "attempt to index '"+op1.se().text()+"' (a " + Luan.type(t) + " value)" ); | 33 throw luan.bit(op1.se()).exception( "attempt to index '"+op1.se().text()+"' (a " + Luan.type(t) + " value)" ); |
34 } | 34 } |
35 if( h instanceof LuanFunction ) { | 35 if( h instanceof LuanFunction ) { |
36 LuanFunction fn = (LuanFunction)h; | 36 LuanFunction fn = (LuanFunction)h; |
37 return Luan.first(luan.bit(se).call(fn,"__index",t,key)); | 37 return Luan.first(luan.bit(se).call(fn,"__index",new Object[]{t,key})); |
38 } | 38 } |
39 return index(luan,h,key); | 39 return index(luan,h,key); |
40 } | 40 } |
41 } | 41 } |