[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/4.5/kdelibs/kjs
From: Maks Orlovich <maksim () kde ! org>
Date: 2010-09-11 19:12:30
Message-ID: 20100911191230.B64ECAC88C () svn ! kde ! org
[Download RAW message or body]
SVN commit 1174275 by orlovich:
Woops, need to commit this too.
M +10 -0 object.h
--- branches/KDE/4.5/kdelibs/kjs/object.h #1174274:1174275
@@ -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,
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic