Replace the old GetSymbol which gets Symbol for [CachedAttribute] attributes with the new API
The new API in V8PrivateProperty to get Symbol was created in CL1810511. The new API needs a key for uniquely identifying v8::Private as an argument and we need to use the same key for each CachedAttribute in AttributeGetter and AttributeSetter. There are two types of CachedAttribute. One has a setter and the other has no setter. Since a CachedAttribute that has no setter only needs to define the key in the getter function, this CL divided the location of the key definition depending on whether or not CachedAttribute has a setter. Bug: 715418 Change-Id: I7d994d4f804e22c5221463067a6957052808d4f6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1855151 Commit-Queue: Marina Sakai <marinasakai@google.com> Reviewed-by:Hitoshi Yoshida <peria@chromium.org> Reviewed-by:
Yuki Shiino <yukishiino@chromium.org> Cr-Commit-Position: refs/heads/master@{#707723}
Showing
Please register or sign in to comment