Mercurial Hosting > luan
comparison src/luan/impl/LuanImpl.java @ 1133:ba4daf107e07
fix security bug
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 17 Jan 2018 20:59:42 -0700 |
parents | 894786a03d22 |
children | 7ef40e1923b7 |
comparison
equal
deleted
inserted
replaced
1132:b70102bab110 | 1133:ba4daf107e07 |
---|---|
160 if( t instanceof LuanTable ) { | 160 if( t instanceof LuanTable ) { |
161 LuanTable tbl = (LuanTable)t; | 161 LuanTable tbl = (LuanTable)t; |
162 tbl.put(luan,key,value); | 162 tbl.put(luan,key,value); |
163 return; | 163 return; |
164 } | 164 } |
165 if( t != null && luan.java.ok ) | 165 if( t != null && luan.javaOk.ok ) |
166 JavaLuan.__new_index(luan,t,key,value); | 166 JavaLuan.__new_index(luan,t,key,value); |
167 else | 167 else |
168 throw new LuanException( "attempt to index a " + Luan.type(t) + " value" ); | 168 throw new LuanException( "attempt to index a " + Luan.type(t) + " value" ); |
169 } | 169 } |
170 | 170 |