Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1450)

Unified Diff: Source/modules/webaudio/AudioParam.cpp

Issue 927333004: Add [TypeChecking=Unrestricted] to Web Audio interfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/webaudio/AudioListener.idl ('k') | Source/modules/webaudio/AudioParam.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/AudioParam.cpp
diff --git a/Source/modules/webaudio/AudioParam.cpp b/Source/modules/webaudio/AudioParam.cpp
index c1c48f41a1170952e29dd9cc9a6e7bf7a6ac41d9..c7bcc0a3b351601bae9e3ba36f55c8108f30ddf8 100644
--- a/Source/modules/webaudio/AudioParam.cpp
+++ b/Source/modules/webaudio/AudioParam.cpp
@@ -56,10 +56,7 @@ float AudioParam::value()
void AudioParam::setValue(float value)
{
- // Check against JavaScript giving us bogus floating-point values.
- // Don't ASSERT, since this can happen if somebody writes bad JS.
- if (!std::isnan(value) && !std::isinf(value))
- m_value = value;
+ m_value = value;
}
float AudioParam::smoothedValue()
« no previous file with comments | « Source/modules/webaudio/AudioListener.idl ('k') | Source/modules/webaudio/AudioParam.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698