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}
This commit is contained in:
franzih 2016-09-13 05:56:12 -07:00 committed by Commit bot
parent 1ccc742dc3
commit 26f3e304a1

View File

@ -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.");
}
}