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

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

Issue 2509713002: binding: Makes Dictionary throw an exception (constructor). (Closed)
Patch Set: Addressed review comments. 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..49b660fbc1659e334d94936ab5defab68417afc0 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ArrayValue.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ArrayValue.cpp
@@ -63,7 +63,10 @@ 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.
+ // http://crbug.com/666661
+ TrackExceptionState exceptionState;
+ value = Dictionary(m_isolate, indexedValue, exceptionState);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698