summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/webkit/JavaScriptCore/debugger
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-08-04 14:22:41 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-08-04 14:48:14 (GMT)
commit394f62d779e6e120ce2fc19bd61ec64bd29a87a9 (patch)
treefa6da1375e83311881da4c95755d7a7276a3c58e /src/3rdparty/webkit/JavaScriptCore/debugger
parentcd23e93e30be026a6bd4a9d5e3d3cbec3cf97621 (diff)
downloadQt-394f62d779e6e120ce2fc19bd61ec64bd29a87a9.zip
Qt-394f62d779e6e120ce2fc19bd61ec64bd29a87a9.tar.gz
Qt-394f62d779e6e120ce2fc19bd61ec64bd29a87a9.tar.bz2
Make it possible to delete properties even though they have the DontDelete attribute
This makes it possible to delete properties in C++, even though they can't be deleted in JS.
Diffstat (limited to 'src/3rdparty/webkit/JavaScriptCore/debugger')
-rw-r--r--src/3rdparty/webkit/JavaScriptCore/debugger/DebuggerActivation.cpp4
-rw-r--r--src/3rdparty/webkit/JavaScriptCore/debugger/DebuggerActivation.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/3rdparty/webkit/JavaScriptCore/debugger/DebuggerActivation.cpp b/src/3rdparty/webkit/JavaScriptCore/debugger/DebuggerActivation.cpp
index 1a1b2a1..f51b650 100644
--- a/src/3rdparty/webkit/JavaScriptCore/debugger/DebuggerActivation.cpp
+++ b/src/3rdparty/webkit/JavaScriptCore/debugger/DebuggerActivation.cpp
@@ -65,9 +65,9 @@ void DebuggerActivation::putWithAttributes(ExecState* exec, const Identifier& pr
m_activation->putWithAttributes(exec, propertyName, value, attributes);
}
-bool DebuggerActivation::deleteProperty(ExecState* exec, const Identifier& propertyName)
+bool DebuggerActivation::deleteProperty(ExecState* exec, const Identifier& propertyName, bool checkDontDelete)
{
- return m_activation->deleteProperty(exec, propertyName);
+ return m_activation->deleteProperty(exec, propertyName, checkDontDelete);
}
void DebuggerActivation::getPropertyNames(ExecState* exec, PropertyNameArray& propertyNames, bool includeNonEnumerable)
diff --git a/src/3rdparty/webkit/JavaScriptCore/debugger/DebuggerActivation.h b/src/3rdparty/webkit/JavaScriptCore/debugger/DebuggerActivation.h
index dcefe5e..4e5b60f 100644
--- a/src/3rdparty/webkit/JavaScriptCore/debugger/DebuggerActivation.h
+++ b/src/3rdparty/webkit/JavaScriptCore/debugger/DebuggerActivation.h
@@ -41,7 +41,7 @@ namespace JSC {
virtual bool getOwnPropertySlot(ExecState*, const Identifier& propertyName, PropertySlot&);
virtual void put(ExecState*, const Identifier& propertyName, JSValue, PutPropertySlot&);
virtual void putWithAttributes(ExecState*, const Identifier& propertyName, JSValue, unsigned attributes);
- virtual bool deleteProperty(ExecState*, const Identifier& propertyName);
+ virtual bool deleteProperty(ExecState*, const Identifier& propertyName, bool checkDontDelete = true);
virtual void getPropertyNames(ExecState*, PropertyNameArray&, bool includeNonEnumerable = false);
virtual bool getPropertyAttributes(ExecState*, const Identifier& propertyName, unsigned& attributes) const;
virtual void defineGetter(ExecState*, const Identifier& propertyName, JSObject* getterFunction);