* Fix getDefaultValue() for JSAdapter to be called on adapter, not adaptee.
This commit is contained in:
parent
08145e3965
commit
b66a0eb8be
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue