* Fix getDefaultValue() for JSAdapter to be called on adapter, not adaptee.

This commit is contained in:
hns 2008-01-29 10:13:27 +00:00
parent 08145e3965
commit b66a0eb8be

View file

@ -241,7 +241,7 @@ public final class JSAdapter implements Scriptable, Function {
}
public Object getDefaultValue(Class hint) {
return getAdaptee().getDefaultValue(hint);
return ScriptableObject.getDefaultValue(this, hint);
}
public Object call(Context cx, Scriptable scope, Scriptable thisObj,