Index: Source/modules/webaudio/AudioScheduledSourceNode.cpp |
diff --git a/Source/modules/webaudio/AudioScheduledSourceNode.cpp b/Source/modules/webaudio/AudioScheduledSourceNode.cpp |
index 52d0ed3ab5d92dee5f9169adb5615847f0f89dd0..19ba26d8c63b74b45c2e77a686e4d50a6fd9589c 100644 |
--- a/Source/modules/webaudio/AudioScheduledSourceNode.cpp |
+++ b/Source/modules/webaudio/AudioScheduledSourceNode.cpp |
@@ -145,7 +145,7 @@ void AudioScheduledSourceNode::start(double when, ExceptionState& exceptionState |
return; |
} |
- if (!std::isfinite(when) || (when < 0)) { |
+ if (when < 0) { |
exceptionState.throwDOMException( |
InvalidAccessError, |
"Start time must be a finite non-negative number: " + String::number(when)); |
@@ -172,10 +172,10 @@ void AudioScheduledSourceNode::stop(double when, ExceptionState& exceptionState) |
return; |
} |
- if (!std::isfinite(when) || (when < 0)) { |
+ if (when < 0) { |
exceptionState.throwDOMException( |
InvalidAccessError, |
- "Stop time must be a finite non-negative number: " + String::number(when)); |
+ "Stop time must be a non-negative number: " + String::number(when)); |
return; |
} |