}
// find out what script is currently running
- JS.CompiledFunction placer = Context.getContextForThread(Thread.currentThread()).getCurrentFunction();
- if (placer == null) { Log.log(Trap.class, "placer is null"); return; }
+ JS.CompiledFunction placer = Context.getContextForThread(Thread.currentThread()).getCurrentFunction();
+ if (placer == null) { Log.log(Trap.class, "placer is null"); return; }
String placerNodeName = placer.getSourceName();
// check if this script has already placed a trap on this property
return ret;
}
- Object ret = f.call(args);
-
+ Object ret = f.call(args);
+
// autocascade if required
if (args.length() > 0 && !isreadtrap && !tc.putCascadeHappened) cascadeFunction.call(args, f);
return ret;
} catch (JS.Exn e) {
- if (Log.on) Log.log(this, e);
+ if (Log.on) Log.log(this, e);
} finally {
// restore the thread-locals