| Index: Source/modules/webaudio/DelayNode.cpp
|
| diff --git a/Source/modules/webaudio/DelayNode.cpp b/Source/modules/webaudio/DelayNode.cpp
|
| index 7a8817ee82e2d07530da46c9d099f1a9018e4666..55c6337635ea244d45bc023756630af9aa65ba7b 100644
|
| --- a/Source/modules/webaudio/DelayNode.cpp
|
| +++ b/Source/modules/webaudio/DelayNode.cpp
|
| @@ -31,6 +31,7 @@
|
| #include "bindings/v8/ExceptionMessages.h"
|
| #include "bindings/v8/ExceptionState.h"
|
| #include "core/dom/ExceptionCode.h"
|
| +#include "wtf/MathExtras.h"
|
|
|
| namespace WebCore {
|
|
|
| @@ -40,7 +41,7 @@ DelayNode::DelayNode(AudioContext* context, float sampleRate, double maxDelayTim
|
| : AudioBasicProcessorNode(context, sampleRate)
|
| {
|
| ScriptWrappable::init(this);
|
| - if (maxDelayTime <= 0 || maxDelayTime >= maximumAllowedDelayTime) {
|
| + if (maxDelayTime <= 0 || maxDelayTime >= maximumAllowedDelayTime || std::isnan(maxDelayTime)) {
|
| exceptionState.throwDOMException(
|
| NotSupportedError,
|
| "max delay time (" + String::number(maxDelayTime)
|
|
|