Submitted by: eseidel
Reviewed by: darin
* kjs/interpreter.h:
(KJS::Context::curStmtFirstLine): stub for compatibility with KDE
* kjs/value.h:
(KJS::Value::isValid): compatibility with KDE
http://bugzilla.opendarwin.org/show_bug.cgi?id=3687
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@9554
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2005-07-01 Eric Seidel <eseidel@apple.com>
+
+ Reviewed by darin.
+
+ * kjs/interpreter.h:
+ (KJS::Context::curStmtFirstLine): stub for compatibility with KDE
+ * kjs/value.h:
+ (KJS::Value::isValid): compatibility with KDE
+ http://bugzilla.opendarwin.org/show_bug.cgi?id=3687
+
2005-07-01 Eric Seidel <eseidel@apple.com>
Reviewed by darin.
* @return The calling execution context
*/
const Context callingContext() const;
+
+ /**
+ * The line number on which the current statement begins
+ * NOTE: Only for source compatibility, JSC does not support this method.
+ */
+ int curStmtFirstLine() const { return 0; }
private:
ContextImp *rep;
explicit Value(const char *);
Value(const UString &);
-
+
+ /**
+ * Returns whether or not this is a valid value. An invalid value
+ * has a 0 implementation pointer and should not be used for
+ * any other operation than this check. Current use: as a
+ * distinct return value signalling failing dynamicCast() calls.
+ */
+ bool isValid() const { return rep != 0; }
+ /**
+ * @deprecated
+ * Use !isValid() instead.
+ */
bool isNull() const { return rep == 0; }
ValueImp *imp() const { return rep; }