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

Unified Diff: src/api.cc

Issue 314953006: Implement LookupIterator designed to replace LookupResult (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Adding to BUILD.gn Created 6 years, 6 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 | « BUILD.gn ('k') | src/arm/stub-cache-arm.cc » ('j') | src/lookup.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index 0f04cd1c28204e2782402aca1f4dee01e40b1e75..91c28566c00d389a2f871c73fc28567e8aae564c 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -3518,10 +3518,9 @@ static Local<Value> GetPropertyByLookup(i::Isolate* isolate,
// If the property being looked up is a callback, it can throw
// an exception.
EXCEPTION_PREAMBLE(isolate);
- PropertyAttributes ignored;
+ i::LookupIterator it(receiver, name);
i::Handle<i::Object> result;
- has_pending_exception = !i::Object::GetProperty(
- receiver, receiver, lookup, name, &ignored).ToHandle(&result);
+ has_pending_exception = !i::Object::GetProperty(&it).ToHandle(&result);
EXCEPTION_BAILOUT_CHECK(isolate, Local<Value>());
return Utils::ToLocal(result);
« no previous file with comments | « BUILD.gn ('k') | src/arm/stub-cache-arm.cc » ('j') | src/lookup.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698