Throw errors for invalid values in panner node constructor

This commit is contained in:
Manish Goregaokar 2018-08-31 01:18:25 -07:00
parent 1ee3deea27
commit 303b62ae8d
2 changed files with 25 additions and 8 deletions

View file

@ -45,7 +45,7 @@ interface PannerNode : AudioNode {
readonly attribute AudioParam orientationY;
readonly attribute AudioParam orientationZ;
attribute DistanceModelType distanceModel;
attribute double refDistance;
[SetterThrows] attribute double refDistance;
[SetterThrows] attribute double maxDistance;
[SetterThrows] attribute double rolloffFactor;
attribute double coneInnerAngle;