Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(413)

Unified Diff: Source/core/storage/Storage.cpp

Issue 17225003: Support named query generation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: remove int returnValue and hard code v8::None Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/storage/Storage.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/storage/Storage.cpp
diff --git a/Source/core/storage/Storage.cpp b/Source/core/storage/Storage.cpp
index c74c4a6d4bd2b23ae5b3abf7dc659599a1950091..f1bdb191057e161b63e800f7d162ace91267bdec 100644
--- a/Source/core/storage/Storage.cpp
+++ b/Source/core/storage/Storage.cpp
@@ -115,4 +115,14 @@ void Storage::namedPropertyEnumerator(Vector<String>& names, ExceptionCode& ec)
}
}
+bool Storage::namedPropertyQuery(const AtomicString& name, ExceptionCode& ec)
+{
+ if (name == "length")
+ return false;
+ bool found = contains(name, ec);
+ if (ec || !found)
+ return false;
+ return true;
+}
+
}
« no previous file with comments | « Source/core/storage/Storage.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698