Index: src/json-stringifier.h |
diff --git a/src/json-stringifier.h b/src/json-stringifier.h |
index 23927b162edc09514d3cadb77efa3a604ed5fb32..03461d723532a4b1c6d3d9438a6695498ad1ea83 100644 |
--- a/src/json-stringifier.h |
+++ b/src/json-stringifier.h |
@@ -338,15 +338,9 @@ void BasicJsonStringifier::Append_(const Char* chars) { |
MaybeHandle<Object> BasicJsonStringifier::ApplyToJsonFunction( |
Handle<Object> object, Handle<Object> key) { |
- LookupResult lookup(isolate_); |
- JSObject::cast(*object)->LookupRealNamedProperty(tojson_string_, &lookup); |
- if (!lookup.IsProperty()) return object; |
- PropertyAttributes attr; |
+ LookupIterator it(object, tojson_string_, LookupIterator::SKIP_INTERCEPTOR); |
Handle<Object> fun; |
- ASSIGN_RETURN_ON_EXCEPTION( |
- isolate_, fun, |
- Object::GetProperty(object, object, &lookup, tojson_string_, &attr), |
- Object); |
+ ASSIGN_RETURN_ON_EXCEPTION(isolate_, fun, Object::GetProperty(&it), Object); |
if (!fun->IsJSFunction()) return object; |
// Call toJSON function. |