-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[functions] Support IACVT-capture for function arguments
Currently, if you attempt to pass e.g. var(--unknown) as a function argument, the declaration containing the function call becomes invalid at computed-value time (IACVT). The intended behavior is instead that an argument "captures" these invalid states, and instead falls back to its default value (or failing that, just becomes <guaranteed-invalid>). This allows authors to pass a variable which may or may not exist into a function, and actually act on that information. Fixed: 397919914 Bug: 325504770 Change-Id: I4ad474b29bdadddafc3780b5659916e7c73e46df Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6288531 Commit-Queue: Anders Hartvoll Ruud <[email protected]> Reviewed-by: Steinar H Gunderson <[email protected]> Cr-Commit-Position: refs/heads/main@{#1424415}
- Loading branch information
1 parent
d7fa260
commit 892b423
Showing
1 changed file
with
111 additions
and
14 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