Changeset 154087 in webkit


Ignore:
Timestamp:
Aug 14, 2013 5:53:02 PM (11 years ago)
Author:
weinig@apple.com
Message:

Update binding test results. Follow up fix for <https://webkit.org/b/119664>

  • bindings/scripts/test/JS/JSTestCallback.cpp:

(WebCore::JSTestCallback::JSTestCallback):

  • bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:

(WebCore::jsTestMediaQueryListListenerPrototypeFunctionMethod):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r154086 r154087  
     12013-08-14  Sam Weinig  <sam@webkit.org>
     2
     3        Update binding test results.  Follow up fix for <https://webkit.org/b/119664>
     4
     5        * bindings/scripts/test/JS/JSTestCallback.cpp:
     6        (WebCore::JSTestCallback::JSTestCallback):
     7        * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
     8        (WebCore::jsTestMediaQueryListListenerPrototypeFunctionMethod):
     9
    1102013-08-14  Joseph Pecoraro  <pecoraro@apple.com>
    211
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCallback.cpp

    r154020 r154087  
    3737
    3838JSTestCallback::JSTestCallback(JSObject* callback, JSDOMGlobalObject* globalObject)
    39     : ActiveDOMCallback(globalObject->scriptExecutionContext())
     39    : TestCallback()
     40    , ActiveDOMCallback(globalObject->scriptExecutionContext())
    4041    , m_data(new JSCallbackData(callback, globalObject))
    4142{
     
    5556#endif
    5657}
     58
    5759
    5860// Functions
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp

    r154038 r154087  
    2424#include "ExceptionCode.h"
    2525#include "JSDOMBinding.h"
    26 #include "MediaQueryListListener.h"
     26#include "JSMediaQueryListListener.h"
    2727#include "TestMediaQueryListListener.h"
    2828#include <runtime/Error.h>
     
    168168    if (exec->argumentCount() < 1)
    169169        return throwVMError(exec, createNotEnoughArgumentsError(exec));
    170     RefPtr<MediaQueryListListener> listener(MediaQueryListListener::create(ScriptValue(exec->vm(), exec->argument(0))));
    171     if (exec->hadException())
    172         return JSValue::encode(jsUndefined());
     170    if (exec->argumentCount() <= 0 || !exec->argument(0).isFunction())
     171        return throwVMTypeError(exec);
     172    RefPtr<MediaQueryListListener> listener = JSMediaQueryListListener::create(asObject(exec->argument(0)), castedThis->globalObject());
    173173    impl->method(listener);
    174174    return JSValue::encode(jsUndefined());
Note: See TracChangeset for help on using the changeset viewer.