Changeset 154087 in webkit
- Timestamp:
- Aug 14, 2013 5:53:02 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r154086 r154087 1 2013-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 1 10 2013-08-14 Joseph Pecoraro <pecoraro@apple.com> 2 11 -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCallback.cpp
r154020 r154087 37 37 38 38 JSTestCallback::JSTestCallback(JSObject* callback, JSDOMGlobalObject* globalObject) 39 : ActiveDOMCallback(globalObject->scriptExecutionContext()) 39 : TestCallback() 40 , ActiveDOMCallback(globalObject->scriptExecutionContext()) 40 41 , m_data(new JSCallbackData(callback, globalObject)) 41 42 { … … 55 56 #endif 56 57 } 58 57 59 58 60 // Functions -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp
r154038 r154087 24 24 #include "ExceptionCode.h" 25 25 #include "JSDOMBinding.h" 26 #include " MediaQueryListListener.h"26 #include "JSMediaQueryListListener.h" 27 27 #include "TestMediaQueryListListener.h" 28 28 #include <runtime/Error.h> … … 168 168 if (exec->argumentCount() < 1) 169 169 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()); 173 173 impl->method(listener); 174 174 return JSValue::encode(jsUndefined());
Note: See TracChangeset
for help on using the changeset viewer.