Skip to content

Commit

Permalink
Unwrap Synchronizer in BaseFunction.toSource().
Browse files Browse the repository at this point in the history
  • Loading branch information
hns committed Nov 20, 2012
1 parent 49648dc commit 430456f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/org/mozilla/javascript/BaseFunction.java
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,9 @@ public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope,
private BaseFunction realFunction(Scriptable thisObj, IdFunctionObject f)
{
Object x = thisObj.getDefaultValue(ScriptRuntime.FunctionClass);
if (x instanceof Delegator) {
x = ((Delegator)x).getDelegee();
}
if (x instanceof BaseFunction) {
return (BaseFunction)x;
}
Expand Down

0 comments on commit 430456f

Please sign in to comment.