SVN commit 1174276 by orlovich: Merged revision:r1174275 | orlovich | 2010-09-11 15:12:30 -0400 (Sat, 11 Sep 2010) | 2 lines Woops, need to commit this too. M +10 -0 object.h --- trunk/KDE/kdelibs/kjs/object.h #1174275:1174276 @@ -366,7 +366,17 @@ virtual JSObject* construct(ExecState* exec, const List& args); virtual JSObject* construct(ExecState* exec, const List& args, const Identifier& functionName, const UString& sourceURL, int lineNumber); + /** + * If this object represents a value, e.g. is a wrapper around a primitive, + * a regexp or a date this will return a fresh object with the same value + * (without cloning properties). Otherwise, returns 0 + * + * The returned objects will use default prototypes from targetCtx + */ + virtual JSObject* valueClone(Interpreter* targetCtx) const; + + /** * Whether or not this object should be considered a function for the purpose * of the typeof operator. Normally this is the same as implementsCall(), * which is what the default implementation delegates too,