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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/Dictionary.h

Issue 2519403002: binding: Lets Dictionary::getPropertyNames, etc. rethrow an exception. (Closed)
Patch Set: Fixed DictionaryTest. Created 4 years, 1 month 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
Index: third_party/WebKit/Source/bindings/core/v8/Dictionary.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/Dictionary.h b/third_party/WebKit/Source/bindings/core/v8/Dictionary.h
index d280c7065be2aad800ddccfce7c951d9d4cd10e9..313681f5241961f777f272a6e03736d02ca67182 100644
--- a/third_party/WebKit/Source/bindings/core/v8/Dictionary.h
+++ b/third_party/WebKit/Source/bindings/core/v8/Dictionary.h
@@ -78,8 +78,11 @@ class CORE_EXPORT Dictionary final {
}
bool get(const StringView& key, Dictionary&) const;
- bool getOwnPropertiesAsStringHashMap(HashMap<String, String>&) const;
- bool getPropertyNames(Vector<String>&) const;
+ WARN_UNUSED_RESULT bool getOwnPropertiesAsStringHashMap(
+ HashMap<String, String>&,
+ ExceptionState&) const;
+ WARN_UNUSED_RESULT bool getPropertyNames(Vector<String>&,
+ ExceptionState&) const;
haraken 2016/11/24 07:22:30 Is it guaranteed that this method returns false if
Yuki 2016/11/24 10:19:32 I like the rule to guarantee that "false in the re
haraken 2016/11/24 12:39:12 I understand your point but other places in the co
Yuki 2016/11/25 08:31:04 Can we change that rule right away? It's a bit er
haraken 2016/11/25 09:14:51 However, then we need to update the entire code ba
Yuki 2016/11/25 09:58:54 Ah, I thought you wanted to return void. You actu
haraken 2016/11/25 10:14:37 Yes. However, my point is that the caller of a me
Yuki 2016/11/25 14:50:25 Per offline discussion, we're going to let the cod
bool hasProperty(const StringView&) const;

Powered by Google App Engine
This is Rietveld 408576698