Commit 8f66a9f6 authored by Marina Sakai's avatar Marina Sakai Committed by Commit Bot

Remove a macro-generated function for a private property of IDBCursor

This CL removes a macro-generated fucntion for a private property of IDBCursor, and replaces it with the new API GetSymbol, which uses an instance address of V8PrivateProperty::SymbolKey as a key to get Symbol.

Bug: 715418
Change-Id: Ic35389c4b1e0e8d38aff73186bd5db10ed1a1e82
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1890521
Commit-Queue: Marina Sakai <marinasakai@google.com>
Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Reviewed-by: default avatarYuki Shiino <yukishiino@chromium.org>
Reviewed-by: default avatarHitoshi Yoshida <peria@chromium.org>
Cr-Commit-Position: refs/heads/master@{#711607}
parent c85a6fa3
......@@ -78,8 +78,9 @@ v8::Local<v8::Object> IDBCursor::AssociateWithWrapper(
wrapper =
ScriptWrappable::AssociateWithWrapper(isolate, wrapper_type, wrapper);
if (!wrapper.IsEmpty()) {
V8PrivateProperty::GetIDBCursorRequest(isolate).Set(
wrapper, ToV8(request_.Get(), wrapper, isolate));
static const V8PrivateProperty::SymbolKey kPrivatePropertyRequest;
V8PrivateProperty::GetSymbol(isolate, kPrivatePropertyRequest)
.Set(wrapper, ToV8(request_.Get(), wrapper, isolate));
}
return wrapper;
}
......
......@@ -26,7 +26,6 @@ class ScriptWrappable;
#define V8_PRIVATE_PROPERTY_FOR_EACH(X) \
X(DOMException, Error) \
X(Global, Event) \
X(IDBCursor, Request) \
X(MessageEvent, CachedData) \
X(NamedConstructor, Initialized) \
X(PopStateEvent, State) \
......
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