diff -r ef0373b55136 -r 758a864f9613 src/script/api/qscriptcontext.cpp --- a/src/script/api/qscriptcontext.cpp Fri Sep 17 08:34:18 2010 +0300 +++ b/src/script/api/qscriptcontext.cpp Mon Oct 04 01:19:32 2010 +0300 @@ -323,6 +323,9 @@ When a function is called as constructor, the thisObject() contains the newly constructed object to be initialized. + + \note This function is only guaranteed to work for a context + corresponding to native functions. */ bool QScriptContext::isCalledAsConstructor() const { @@ -413,6 +416,9 @@ object provides access to the local variables associated with this context. + \note The activation object might not be available if there is no + active QScriptEngineAgent, as it might be optimized. + \sa argument(), argumentsObject() */ @@ -472,6 +478,10 @@ activation. If \a activation is not an object, this function does nothing. + + \note For a context corresponding to a JavaScript function, this is only + guarenteed to work if there was an QScriptEngineAgent active on the + engine while the function was evaluated. */ void QScriptContext::setActivationObject(const QScriptValue &activation) {