Changeset 112535 in webkit


Ignore:
Timestamp:
Mar 29, 2012, 8:54:45 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

Fix the error type in JSAudioBufferSourceNodeCustom to pass layout test.
https://bugs.webkit.org/show_bug.cgi?id=81639

Patch by Sanghyun Park <sh919.park@samsung.com> on 2012-03-29
Reviewed by Eric Carlson.

Test : LayoutTest/webaudio/audiobuffersource-channels.html

  • bindings/js/JSAudioBufferSourceNodeCustom.cpp:
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r112533 r112535  
     12012-03-29  Sanghyun Park  <sh919.park@samsung.com>
     2
     3        Fix the error type in JSAudioBufferSourceNodeCustom to pass layout test.
     4        https://bugs.webkit.org/show_bug.cgi?id=81639
     5
     6        Reviewed by Eric Carlson.
     7
     8        Test : LayoutTest/webaudio/audiobuffersource-channels.html
     9
     10        * bindings/js/JSAudioBufferSourceNodeCustom.cpp:
     11
    1122012-03-29  Vsevolod Vlasov  <vsevik@chromium.org>
    213
  • trunk/Source/WebCore/bindings/js/JSAudioBufferSourceNodeCustom.cpp

    r95901 r112535  
    11/*
    22 * Copyright (C) 2010, Google Inc. All rights reserved.
     3 * Copyright (C) 2012 Samsung Electronics
    34 *
    45 * Redistribution and use in source and binary forms, with or without
     
    4344    AudioBuffer* buffer = toAudioBuffer(value);
    4445    if (!buffer) {
    45         throwError(exec, createSyntaxError(exec, "Value is not of type AudioBuffer"));
     46        throwError(exec, createTypeError(exec, "Value is not of type AudioBuffer"));
    4647        return;
    4748    }
    4849   
    4950    if (!imp->setBuffer(buffer))
    50         throwError(exec, createSyntaxError(exec, "AudioBuffer unsupported number of channels"));
     51        throwError(exec, createTypeError(exec, "AudioBuffer unsupported number of channels"));
    5152}
    5253
Note: See TracChangeset for help on using the changeset viewer.