Changeset 25545 in webkit
- Timestamp:
- Sep 13, 2007 3:01:37 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r25535 r25545 1 2007-09-13 Kevin McCullough <kmccullough@apple.com> 2 3 Reviewed by Geof, Sam, Adam, Hyatt, Darin. 4 5 - <rdar://problem/5480234> JS setTimeout function requires a second argument 6 - Removed check for number of arguments in setTimeout to behave like other browsers. 7 8 * fast/dom/Window/setTimeout-no-arguments-expected.txt: Added. 9 * fast/dom/Window/setTimeout-no-arguments.html: Added. 10 1 11 2007-09-13 Antti Koivisto <antti@apple.com> 2 12 -
trunk/WebCore/ChangeLog
r25543 r25545 1 2007-09-13 Kevin McCullough <kmccullough@apple.com> 2 3 Reviewed by Geof, Sam, Adam, Hyatt, Darin. 4 5 - <rdar://problem/5480234> JS setTimeout function requires a second argument 6 - Removed check for number of arguments in setTimeout to behave like other browsers. 7 - Added layoutTest setTimeout-no-arguments.html 8 9 * bindings/js/kjs_window.cpp: 10 (KJS::WindowFunc::callAsFunction): 11 1 12 2007-09-13 Dave Hyatt <hyatt@apple.com> 2 13 -
trunk/WebCore/bindings/js/kjs_window.cpp
r25249 r25545 1360 1360 if (!window->isSafeScript(exec)) 1361 1361 return jsUndefined(); 1362 if ( args.size() >= 2 &&v->isString()) {1362 if (v->isString()) { 1363 1363 int i = args[1]->toInt32(exec); 1364 1364 int r = (const_cast<Window*>(window))->installTimeout(s, i, true /*single shot*/); 1365 1365 return jsNumber(r); 1366 1366 } 1367 else if ( args.size() >= 2 &&v->isObject() && static_cast<JSObject *>(v)->implementsCall()) {1367 else if (v->isObject() && static_cast<JSObject *>(v)->implementsCall()) { 1368 1368 JSValue *func = args[0]; 1369 1369 int i = args[1]->toInt32(exec);
Note: See TracChangeset
for help on using the changeset viewer.