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

Unified Diff: src/objects.cc

Issue 1421483004: Revert of GetOwnPropertyDescriptor: API-style accessors can throw, check for that. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index d1197e875a59590ab2c13a7f9438e13b81e3fdb0..226878cda43b97f8a427d7125c1214c1fa2e2945 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -6617,11 +6617,7 @@
it->GetAccessors()->IsAccessorPair();
if (!is_accessor_pair) {
// 5a. Set D.[[Value]] to the value of X's [[Value]] attribute.
- Handle<Object> value;
- if (!JSObject::GetProperty(it).ToHandle(&value)) {
- DCHECK(isolate->has_pending_exception());
- return false;
- }
+ Handle<Object> value = JSObject::GetProperty(it).ToHandleChecked();
desc->set_value(value);
// 5b. Set D.[[Writable]] to the value of X's [[Writable]] attribute
desc->set_writable((attrs & READ_ONLY) == 0);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698