diff options
Diffstat (limited to 'WebCore/bindings/js/JSStorageCustom.cpp')
-rw-r--r-- | WebCore/bindings/js/JSStorageCustom.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/WebCore/bindings/js/JSStorageCustom.cpp b/WebCore/bindings/js/JSStorageCustom.cpp index bc43d79..07cf2f8 100644 --- a/WebCore/bindings/js/JSStorageCustom.cpp +++ b/WebCore/bindings/js/JSStorageCustom.cpp @@ -64,17 +64,16 @@ bool JSStorage::deleteProperty(ExecState* exec, const Identifier& propertyName) return true; } -bool JSStorage::customGetPropertyNames(ExecState* exec, PropertyNameArray& propertyNames) +void JSStorage::getPropertyNames(ExecState* exec, PropertyNameArray& propertyNames) { - ExceptionCode ec; unsigned length = m_impl->length(); for (unsigned i = 0; i < length; ++i) - propertyNames.add(Identifier(exec, m_impl->key(i, ec))); + propertyNames.add(Identifier(exec, m_impl->key(i))); - return false; + Base::getPropertyNames(exec, propertyNames); } -bool JSStorage::customPut(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot&) +bool JSStorage::putDelegate(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot&) { // Only perform the custom put if the object doesn't have a native property by this name. // Since hasProperty() would end up calling canGetItemsForName() and be fooled, we need to check |