Chromium Code Reviews| 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; |