Commit d181e6e1 authored by jochen's avatar jochen Committed by Commit bot

Add debug code to catch faulty interceptor

BUG=chromium:625155
R=jkummerow@chromium.org

Review-Url: https://codereview.chromium.org/2265903002
Cr-Commit-Position: refs/heads/master@{#38775}
parent c13acc81
......@@ -4576,6 +4576,13 @@ Maybe<bool> Object::SetPropertyInternal(LookupIterator* it,
if (result.IsNothing() || result.FromJust()) return result;
// Interceptor modified the store target but failed to set the
// property.
// TODO(jochen): Remove after we've identified the faulty interceptor.
if (!store_target_map.is_null() &&
*store_target_map != it->GetStoreTarget()->map()) {
it->isolate()->PushStackTraceAndDie(
0xabababaa, v8::ToCData<void*>(it->GetInterceptor()->setter()),
nullptr, 0xabababab);
}
Utils::ApiCheck(store_target_map.is_null() ||
*store_target_map == it->GetStoreTarget()->map(),
it->IsElement() ? "v8::IndexedPropertySetterCallback"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment