Mercurial Hosting > luan
comparison src/luan/Luan.java @ 1432:d7644b21b128
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 20 Dec 2019 23:24:50 -0700 |
parents | 9ab267b9427c |
children | 56fb5cd8228d |
comparison
equal
deleted
inserted
replaced
1431:f3a417074cea | 1432:d7644b21b128 |
---|---|
331 } | 331 } |
332 | 332 |
333 private static void check(Luan luan,int i,String op,Object... args) throws LuanException { | 333 private static void check(Luan luan,int i,String op,Object... args) throws LuanException { |
334 Security s = (Security)luan.registry().get(SECURITY_KEY); | 334 Security s = (Security)luan.registry().get(SECURITY_KEY); |
335 if( s!=null ) | 335 if( s!=null ) |
336 s.check(luan,luan.peek(),op,args); | 336 s.check(luan,luan.peek(i),op,args); |
337 } | 337 } |
338 | 338 |
339 public static Security setSecurity(Luan luan,Security s) { | 339 public static Security setSecurity(Luan luan,Security s) { |
340 return (Security)luan.registry().put(SECURITY_KEY,s); | 340 return (Security)luan.registry().put(SECURITY_KEY,s); |
341 } | 341 } |