Title: [112535] trunk/Source/WebCore
- Revision
- 112535
- Author
- [email protected]
- Date
- 2012-03-29 08:54:45 -0700 (Thu, 29 Mar 2012)
Log Message
Fix the error type in JSAudioBufferSourceNodeCustom to pass layout test.
https://bugs.webkit.org/show_bug.cgi?id=81639
Patch by Sanghyun Park <[email protected]> on 2012-03-29
Reviewed by Eric Carlson.
Test : LayoutTest/webaudio/audiobuffersource-channels.html
* bindings/js/JSAudioBufferSourceNodeCustom.cpp:
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (112534 => 112535)
--- trunk/Source/WebCore/ChangeLog 2012-03-29 15:28:27 UTC (rev 112534)
+++ trunk/Source/WebCore/ChangeLog 2012-03-29 15:54:45 UTC (rev 112535)
@@ -1,3 +1,14 @@
+2012-03-29 Sanghyun Park <[email protected]>
+
+ Fix the error type in JSAudioBufferSourceNodeCustom to pass layout test.
+ https://bugs.webkit.org/show_bug.cgi?id=81639
+
+ Reviewed by Eric Carlson.
+
+ Test : LayoutTest/webaudio/audiobuffersource-channels.html
+
+ * bindings/js/JSAudioBufferSourceNodeCustom.cpp:
+
2012-03-29 Vsevolod Vlasov <[email protected]>
Web Inspector: Existing UISourceCode should be loaded on scripts panel creation/reset.
Modified: trunk/Source/WebCore/bindings/js/JSAudioBufferSourceNodeCustom.cpp (112534 => 112535)
--- trunk/Source/WebCore/bindings/js/JSAudioBufferSourceNodeCustom.cpp 2012-03-29 15:28:27 UTC (rev 112534)
+++ trunk/Source/WebCore/bindings/js/JSAudioBufferSourceNodeCustom.cpp 2012-03-29 15:54:45 UTC (rev 112535)
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2010, Google Inc. All rights reserved.
+ * Copyright (C) 2012 Samsung Electronics
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -42,12 +43,12 @@
AudioBufferSourceNode* imp = static_cast<AudioBufferSourceNode*>(impl());
AudioBuffer* buffer = toAudioBuffer(value);
if (!buffer) {
- throwError(exec, createSyntaxError(exec, "Value is not of type AudioBuffer"));
+ throwError(exec, createTypeError(exec, "Value is not of type AudioBuffer"));
return;
}
if (!imp->setBuffer(buffer))
- throwError(exec, createSyntaxError(exec, "AudioBuffer unsupported number of channels"));
+ throwError(exec, createTypeError(exec, "AudioBuffer unsupported number of channels"));
}
} // namespace WebCore
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes