summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/webkit/JavaScriptCore/runtime/RegExpMatchesArray.h
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/runtime/RegExpMatchesArray.h
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/runtime/RegExpMatchesArray.h')
-rw-r--r--src/3rdparty/webkit/JavaScriptCore/runtime/RegExpMatchesArray.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/3rdparty/webkit/JavaScriptCore/runtime/RegExpMatchesArray.h b/src/3rdparty/webkit/JavaScriptCore/runtime/RegExpMatchesArray.h
index 479a82c..c891faa 100644
--- a/src/3rdparty/webkit/JavaScriptCore/runtime/RegExpMatchesArray.h
+++ b/src/3rdparty/webkit/JavaScriptCore/runtime/RegExpMatchesArray.h
@@ -58,18 +58,18 @@ namespace JSC {
JSArray::put(exec, propertyName, v);
}
- virtual bool deleteProperty(ExecState* exec, const Identifier& propertyName)
+ virtual bool deleteProperty(ExecState* exec, const Identifier& propertyName, bool checkDontDelete = true)
{
if (lazyCreationData())
fillArrayInstance(exec);
- return JSArray::deleteProperty(exec, propertyName);
+ return JSArray::deleteProperty(exec, propertyName, checkDontDelete);
}
- virtual bool deleteProperty(ExecState* exec, unsigned propertyName)
+ virtual bool deleteProperty(ExecState* exec, unsigned propertyName, bool checkDontDelete = true)
{
if (lazyCreationData())
fillArrayInstance(exec);
- return JSArray::deleteProperty(exec, propertyName);
+ return JSArray::deleteProperty(exec, propertyName, checkDontDelete);
}
virtual void getPropertyNames(ExecState* exec, PropertyNameArray& arr, bool includeNonEnumerable = false)