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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ArrayValue.cpp

Issue 2509713002: binding: Makes Dictionary throw an exception (constructor). (Closed)
Patch Set: 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/ArrayValue.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ArrayValue.cpp b/third_party/WebKit/Source/bindings/core/v8/ArrayValue.cpp
index 789b76f46ea8e8bdf70a1f8c89902821f57a9189..974cfb89a438230796e60e110e2b816e9490c735 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ArrayValue.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ArrayValue.cpp
@@ -63,7 +63,9 @@ bool ArrayValue::get(size_t index, Dictionary& value) const {
!indexedValue->IsObject())
return false;
- value = Dictionary(m_isolate, indexedValue);
+ // TODO(bashi,yukishiino): Should rethrow the exception.
bashi 2016/11/16 17:01:54 nit: File a bug to track this issue?
Yuki 2016/11/18 13:37:53 Done. http://crbug.com/666661
+ TrackExceptionState exceptionState;
+ value = Dictionary(m_isolate, indexedValue, exceptionState);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698