diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-08-04 14:22:41 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-08-04 14:48:14 (GMT) |
commit | 394f62d779e6e120ce2fc19bd61ec64bd29a87a9 (patch) | |
tree | fa6da1375e83311881da4c95755d7a7276a3c58e /src/3rdparty/webkit/JavaScriptCore/runtime/JSFunction.cpp | |
parent | cd23e93e30be026a6bd4a9d5e3d3cbec3cf97621 (diff) | |
download | Qt-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/JSFunction.cpp')
-rw-r--r-- | src/3rdparty/webkit/JavaScriptCore/runtime/JSFunction.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/3rdparty/webkit/JavaScriptCore/runtime/JSFunction.cpp b/src/3rdparty/webkit/JavaScriptCore/runtime/JSFunction.cpp index b79074f..c8e137e 100644 --- a/src/3rdparty/webkit/JavaScriptCore/runtime/JSFunction.cpp +++ b/src/3rdparty/webkit/JavaScriptCore/runtime/JSFunction.cpp @@ -176,13 +176,13 @@ void JSFunction::put(ExecState* exec, const Identifier& propertyName, JSValue va Base::put(exec, propertyName, value, slot); } -bool JSFunction::deleteProperty(ExecState* exec, const Identifier& propertyName) +bool JSFunction::deleteProperty(ExecState* exec, const Identifier& propertyName, bool checkDontDelete) { if (isHostFunction()) - return Base::deleteProperty(exec, propertyName); + return Base::deleteProperty(exec, propertyName, checkDontDelete); if (propertyName == exec->propertyNames().arguments || propertyName == exec->propertyNames().length) return false; - return Base::deleteProperty(exec, propertyName); + return Base::deleteProperty(exec, propertyName, checkDontDelete); } // ECMA 13.2.2 [[Construct]] |