+2012-03-29 Sanghyun Park <sh919.park@samsung.com>
+
+ 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 <vsevik@chromium.org>
Web Inspector: Existing UISourceCode should be loaded on scripts panel creation/reset.
/*
* 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
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