diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2019-04-26 03:32:48 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-26 03:32:48 -0400 |
commit | 56c2e85cab5b01ad31be3c69f0fcc2c992960e5c (patch) | |
tree | 09234476267a9c0c2829a32c0a6dabfde5fb6b79 /components/script/dom/webidls | |
parent | 9b2018779347dcd404b955e3773dfed3c3b45c92 (diff) | |
parent | 8a8a9f7135d76daafac07a010c3feb6787dc3532 (diff) | |
download | servo-56c2e85cab5b01ad31be3c69f0fcc2c992960e5c.tar.gz servo-56c2e85cab5b01ad31be3c69f0fcc2c992960e5c.zip |
Auto merge of #23270 - Manishearth:audioparam-validation, r=ferjm
Add input validation for AudioParam methods
Waiting on a build to make WPT updates
Spec requires us to validate inputs, we aren't doing this here.
We don't need to check for things being finite since we already get the arguments as `Finite` values
<!-- 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/23270)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/webidls')
-rw-r--r-- | components/script/dom/webidls/AudioParam.webidl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/components/script/dom/webidls/AudioParam.webidl b/components/script/dom/webidls/AudioParam.webidl index 47df206b79d..f191a6848f3 100644 --- a/components/script/dom/webidls/AudioParam.webidl +++ b/components/script/dom/webidls/AudioParam.webidl @@ -18,15 +18,15 @@ interface AudioParam { readonly attribute float defaultValue; readonly attribute float minValue; readonly attribute float maxValue; - AudioParam setValueAtTime(float value, double startTime); - AudioParam linearRampToValueAtTime(float value, double endTime); - AudioParam exponentialRampToValueAtTime(float value, double endTime); - AudioParam setTargetAtTime(float target, + [Throws] AudioParam setValueAtTime(float value, double startTime); + [Throws] AudioParam linearRampToValueAtTime(float value, double endTime); + [Throws] AudioParam exponentialRampToValueAtTime(float value, double endTime); + [Throws] AudioParam setTargetAtTime(float target, double startTime, float timeConstant); // AudioParam setValueCurveAtTime(sequence<float> values, // double startTime, // double duration); - AudioParam cancelScheduledValues(double cancelTime); - AudioParam cancelAndHoldAtTime(double cancelTime); + [Throws] AudioParam cancelScheduledValues(double cancelTime); + [Throws] AudioParam cancelAndHoldAtTime(double cancelTime); }; |