mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
Auto merge of #20389 - christianpoveda:issue_20350, r=jdm
getRandomValues uses ArrayBufferView now <!-- Please describe your changes on the following line: --> - Changed the `Crypto.webidl` file to allow getRandomValues to recieve an ArrayBufferView as input - Removed unnecesary checks from `crypto.rs` and did the necessary changes to match the `webidl` changes. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #20350 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20389) <!-- Reviewable:end -->
This commit is contained in:
commit
e5b606f6a4
2 changed files with 12 additions and 19 deletions
|
@ -18,7 +18,6 @@ WorkerGlobalScope implements GlobalCrypto;
|
|||
[Exposed=(Window,Worker)]
|
||||
interface Crypto {
|
||||
//readonly attribute SubtleCrypto subtle;
|
||||
//ArrayBufferView getRandomValues(ArrayBufferView array);
|
||||
[Throws]
|
||||
ArrayBufferView getRandomValues(object array);
|
||||
ArrayBufferView getRandomValues(ArrayBufferView array);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue