forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gin: Implement ObjectTemplateBuilder::SetLazyDataProperty.
This is useful for compatibility with APIs that previously exposed data properties. It is necessary to make the invocation infrastructure work on v8::PropertyCallbackInfo, which is how this arrives to us from V8. gin::Arguments is augmented so that it can be constructed from either type of callback info. This does add some conditional branches, but this complexity is confined to gin::Arguments. Unit tests for the lazy data property logic are fairly basic because most of the functionality lives inside V8 itself. Bug: 927878 Change-Id: I83ad6088f8e508fb7b32fdefb1245dd2c5c1a2f1 Reviewed-on: https://chromium-review.googlesource.com/c/1450395 Commit-Queue: Jeremy Roman <jbroman@chromium.org> Reviewed-by: Devlin <rdevlin.cronin@chromium.org> Cr-Commit-Position: refs/heads/master@{#628783}
- Loading branch information
1 parent
9cf2a99
commit 6a1242b
Showing
6 changed files
with
223 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.