[Cleanup] Deprecate non-maybe versions of HasReal*Property.
These functions have been marked V8_DEPRECATE_SOON for a long time, now all uses have been removed from Chrome, mark them as deprecated. BUG=v8:7287,v8:8238 Change-Id: I47b23588231ca510ec2475cb476e4134c05e162a Reviewed-on: https://chromium-review.googlesource.com/c/1356517 Reviewed-by: Yang Guo <yangguo@chromium.org> Commit-Queue: Ross McIlroy <rmcilroy@chromium.org> Cr-Commit-Position: refs/heads/master@{#58154}
This commit is contained in:
parent
95db83b680
commit
0fd93d3ad5
12
include/v8.h
12
include/v8.h
@ -3491,8 +3491,8 @@ class V8_EXPORT Object : public Value {
|
||||
Local<Name> key);
|
||||
V8_WARN_UNUSED_RESULT Maybe<bool> HasOwnProperty(Local<Context> context,
|
||||
uint32_t index);
|
||||
V8_DEPRECATE_SOON("Use maybe version",
|
||||
bool HasRealNamedProperty(Local<String> key));
|
||||
V8_DEPRECATED("Use maybe version",
|
||||
bool HasRealNamedProperty(Local<String> key));
|
||||
/**
|
||||
* Use HasRealNamedProperty() if you want to check if an object has an own
|
||||
* property without causing side effects, i.e., without calling interceptors.
|
||||
@ -3508,12 +3508,12 @@ class V8_EXPORT Object : public Value {
|
||||
*/
|
||||
V8_WARN_UNUSED_RESULT Maybe<bool> HasRealNamedProperty(Local<Context> context,
|
||||
Local<Name> key);
|
||||
V8_DEPRECATE_SOON("Use maybe version",
|
||||
bool HasRealIndexedProperty(uint32_t index));
|
||||
V8_DEPRECATED("Use maybe version",
|
||||
bool HasRealIndexedProperty(uint32_t index));
|
||||
V8_WARN_UNUSED_RESULT Maybe<bool> HasRealIndexedProperty(
|
||||
Local<Context> context, uint32_t index);
|
||||
V8_DEPRECATE_SOON("Use maybe version",
|
||||
bool HasRealNamedCallbackProperty(Local<String> key));
|
||||
V8_DEPRECATED("Use maybe version",
|
||||
bool HasRealNamedCallbackProperty(Local<String> key));
|
||||
V8_WARN_UNUSED_RESULT Maybe<bool> HasRealNamedCallbackProperty(
|
||||
Local<Context> context, Local<Name> key);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user