See https://github.com/WebAudio/web-audio-api/issues/1083 and https://github.com/WebAudio/web-audio-api/issues/611.
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/3d0b06fe16bd256cc1dbe768d5b6d43c20f3f1ec commit 3d0b06fe16bd256cc1dbe768d5b6d43c20f3f1ec Author: rtoy <rtoy@chromium.org> Date: Fri Dec 02 19:29:47 2016 Throw RangeError for invalid refDistance/maxDistance The PannerNode refDistance and maxDistance attributes must throw a RangeError on attempts to set either to a non-positive value. BUG= 666396 TEST=panner-distance-clamping.html Review-Url: https://codereview.chromium.org/2512793003 Cr-Commit-Position: refs/heads/master@{#435993} [modify] https://crrev.com/3d0b06fe16bd256cc1dbe768d5b6d43c20f3f1ec/third_party/WebKit/LayoutTests/webaudio/panner-distance-clamping.html [modify] https://crrev.com/3d0b06fe16bd256cc1dbe768d5b6d43c20f3f1ec/third_party/WebKit/Source/modules/webaudio/PannerNode.cpp [modify] https://crrev.com/3d0b06fe16bd256cc1dbe768d5b6d43c20f3f1ec/third_party/WebKit/Source/modules/webaudio/PannerNode.h [modify] https://crrev.com/3d0b06fe16bd256cc1dbe768d5b6d43c20f3f1ec/third_party/WebKit/Source/modules/webaudio/PannerNode.idl
Comment 1 by rtoy@chromium.org
, Nov 17 2016