-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: array_fill can return false if $size<0. This results in a cast from bool to vec, leading to a InvalidOperationException with a confusing message. Instead of invoking array_fill with invalid arguments, throw an InvariantException. Reviewed By: kmeht Differential Revision: D5652216 fbshipit-source-id: 16995500392e07f74601cd5e99c8ca7763268055
- Loading branch information
1 parent
d8a048c
commit 1cde7b3
Showing
2 changed files
with
6 additions
and
0 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