Changeset 91319 in webkit


Ignore:
Timestamp:
Jul 19, 2011 4:14:30 PM (13 years ago)
Author:
crogers@google.com
Message:

Fix web audio compile on mac port
https://bugs.webkit.org/show_bug.cgi?id=64836

Unreviewed build fix.

  • bindings/js/JSAudioContextCustom.cpp:

(WebCore::JSAudioContextConstructor::constructJSAudioContext):
(WebCore::JSAudioContext::createBuffer):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r91316 r91319  
     12011-07-19  Chris Rogers  <crogers@google.com>
     2
     3        Fix web audio compile on mac port
     4        https://bugs.webkit.org/show_bug.cgi?id=64836
     5
     6        Unreviewed build fix.
     7
     8        * bindings/js/JSAudioContextCustom.cpp:
     9        (WebCore::JSAudioContextConstructor::constructJSAudioContext):
     10        (WebCore::JSAudioContext::createBuffer):
     11
    1122011-07-19  Jessie Berlin  <jberlin@apple.com>
    213
  • trunk/Source/WebCore/bindings/js/JSAudioContextCustom.cpp

    r90853 r91319  
    9494        if (ec) {
    9595            setDOMException(exec, ec);
    96             return jsUndefined();
     96            return throwVMError(exec, createSyntaxError(exec, "Error creating OfflineAudioContext"));
    9797        }
    9898    }
     
    139139
    140140    if (numberOfChannels <= 0 || numberOfChannels > 10)
    141         return throwVMError(exec, createSyntaxError(exec, "Invalid number of channels"));
     141        return throwError(exec, createSyntaxError(exec, "Invalid number of channels"));
    142142
    143143    if (numberOfFrames <= 0)
    144         return throwVMError(exec, createSyntaxError(exec, "Invalid number of frames"));
     144        return throwError(exec, createSyntaxError(exec, "Invalid number of frames"));
    145145
    146146    if (sampleRate <= 0)
    147         return throwVMError(exec, createSyntaxError(exec, "Invalid sample rate"));
     147        return throwError(exec, createSyntaxError(exec, "Invalid sample rate"));
    148148
    149149    RefPtr<AudioBuffer> audioBuffer = audioContext->createBuffer(numberOfChannels, numberOfFrames, sampleRate);
Note: See TracChangeset for help on using the changeset viewer.