diff --git a/src/helma/scripting/rhino/HopObject.java b/src/helma/scripting/rhino/HopObject.java index 3928f0fa..eccf37e6 100644 --- a/src/helma/scripting/rhino/HopObject.java +++ b/src/helma/scripting/rhino/HopObject.java @@ -160,6 +160,17 @@ public class HopObject extends ScriptableObject implements Wrapper { return className; } + /** + * Return a primitive representation for this object. + * FIXME: We always return a string representation. + * + * @param hint the type hint + * @return the default value for the object + */ + public Object getDefaultValue(Class hint) { + return toString(); + } + /** * *