X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2Fjs%2FCompiledFunctionImpl.java;fp=src%2Forg%2Fxwt%2Fjs%2FCompiledFunctionImpl.java;h=9912ab1f26b86bb9e4cf59a8b43ec678637a1ecb;hb=2392ea57476fb9fac4171301bc9a95c60c47970b;hp=c31c84e364c9e30e6ddf24c02d6c948f482ad5a4;hpb=192191dc701c18d741fc60a04fe3da2bc5087a22;p=org.ibex.core.git diff --git a/src/org/xwt/js/CompiledFunctionImpl.java b/src/org/xwt/js/CompiledFunctionImpl.java index c31c84e..9912ab1 100644 --- a/src/org/xwt/js/CompiledFunctionImpl.java +++ b/src/org/xwt/js/CompiledFunctionImpl.java @@ -417,6 +417,7 @@ class CompiledFunctionImpl extends JSCallable implements ByteCodes, Tokens { public String getSourceName() { return sourceName; } public Object get(Object key) throws JS.Exn { if (key.equals("trapee")) return org.xwt.Trap.currentTrapee(); + else if (key.equals("trapname")) return org.xwt.Trap.currentTrapname(); else if (key.equals("cascade")) return org.xwt.Trap.cascadeFunction; return super.get(key); }