Mercurial Hosting > luan
comparison src/luan/modules/BasicLuan.java @ 1330:f41919741100
fix security
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 11 Feb 2019 01:38:55 -0700 |
parents | 11d3640e739d |
children | 25746915a241 |
comparison
equal
deleted
inserted
replaced
1329:5a39b006acd1 | 1330:f41919741100 |
---|---|
86 | 86 |
87 public static Object raw_get(LuanTable table,Object index) { | 87 public static Object raw_get(LuanTable table,Object index) { |
88 return table.rawGet(index); | 88 return table.rawGet(index); |
89 } | 89 } |
90 | 90 |
91 public static void raw_set(LuanTable table,Object index,Object value) { | 91 public static void raw_set(LuanTable table,Object index,Object value) throws LuanException { |
92 table.rawPut(index,value); | 92 table.rawPut(index,value); |
93 } | 93 } |
94 | 94 |
95 public static int raw_len(Object v) throws LuanException { | 95 public static int raw_len(Object v) throws LuanException { |
96 if( v instanceof String ) { | 96 if( v instanceof String ) { |
238 throw new LuanException("strict must be nil or 'strict'"); | 238 throw new LuanException("strict must be nil or 'strict'"); |
239 } | 239 } |
240 return LuanToString.toString(obj,b); | 240 return LuanToString.toString(obj,b); |
241 } | 241 } |
242 | 242 |
243 private void BasicLuan() {} // never | |
243 } | 244 } |