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

Unified Diff: src/objects.cc

Issue 2338773002: Use correct interceptor if error occurs. (Closed)
Patch Set: Use correct interceptor if error occurs. Created 4 years, 3 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 d271ab760016de43b65760ecdaa9fdcec77bd5fc..0f6ce61c06f0bd58af6bae4d9887c3cf8b1ac6c1 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -6606,13 +6606,13 @@ Maybe<bool> JSReceiver::OrdinaryDefineOwnProperty(Isolate* isolate,
if (!store_target_map.is_null() &&
*store_target_map != it.GetStoreTarget()->map()) {
it.isolate()->PushStackTraceAndDie(
- 0xabababaa, v8::ToCData<void*>(it.GetInterceptor()->setter()),
+ 0xabababaa, v8::ToCData<void*>(it.GetInterceptor()->definer()),
nullptr, 0xabababab);
}
Utils::ApiCheck(store_target_map.is_null() ||
*store_target_map == it.GetStoreTarget()->map(),
- it.IsElement() ? "v8::IndexedPropertySetterCallback"
- : "v8::NamedPropertySetterCallback",
+ it.IsElement() ? "v8::IndexedPropertyDefinerCallback"
+ : "v8::NamedPropertyDefinerCallback",
"Interceptor silently changed store target.");
}
}
« 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