Commit 26f3e304 authored by franzih's avatar franzih Committed by Commit bot

Fix function name in error message and use correct interceptor if an error occurs.

BUG=

Review-Url: https://codereview.chromium.org/2338773002
Cr-Commit-Position: refs/heads/master@{#39383}
parent 1ccc742d
...@@ -6606,13 +6606,13 @@ Maybe<bool> JSReceiver::OrdinaryDefineOwnProperty(Isolate* isolate, ...@@ -6606,13 +6606,13 @@ Maybe<bool> JSReceiver::OrdinaryDefineOwnProperty(Isolate* isolate,
if (!store_target_map.is_null() && if (!store_target_map.is_null() &&
*store_target_map != it.GetStoreTarget()->map()) { *store_target_map != it.GetStoreTarget()->map()) {
it.isolate()->PushStackTraceAndDie( it.isolate()->PushStackTraceAndDie(
0xabababaa, v8::ToCData<void*>(it.GetInterceptor()->setter()), 0xabababaa, v8::ToCData<void*>(it.GetInterceptor()->definer()),
nullptr, 0xabababab); nullptr, 0xabababab);
} }
Utils::ApiCheck(store_target_map.is_null() || Utils::ApiCheck(store_target_map.is_null() ||
*store_target_map == it.GetStoreTarget()->map(), *store_target_map == it.GetStoreTarget()->map(),
it.IsElement() ? "v8::IndexedPropertySetterCallback" it.IsElement() ? "v8::IndexedPropertyDefinerCallback"
: "v8::NamedPropertySetterCallback", : "v8::NamedPropertyDefinerCallback",
"Interceptor silently changed store target."); "Interceptor silently changed store target.");
} }
} }
......
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