Changeset 25545 in webkit


Ignore:
Timestamp:
Sep 13, 2007 3:01:37 PM (17 years ago)
Author:
kmccullo
Message:

WebCore:

Reviewed by Geof, Sam, Adam, Hyatt, Darin.

  • <rdar://problem/5480234> JS setTimeout function requires a second argument
  • Removed check for number of arguments in setTimeout to behave like other browsers.
  • Added layoutTest setTimeout-no-arguments.html
  • bindings/js/kjs_window.cpp: (KJS::WindowFunc::callAsFunction):

LayoutTests:

Reviewed by Geof, Sam, Adam, Hyatt, Darin.

  • <rdar://problem/5480234> JS setTimeout function requires a second argument
  • Removed check for number of arguments in setTimeout to behave like other browsers.
  • fast/dom/Window/setTimeout-no-arguments-expected.txt: Added.
  • fast/dom/Window/setTimeout-no-arguments.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r25535 r25545  
     12007-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
    1112007-09-13  Antti Koivisto  <antti@apple.com>
    212
  • trunk/WebCore/ChangeLog

    r25543 r25545  
     12007-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
    1122007-09-13   Dave Hyatt  <hyatt@apple.com>
    213
  • trunk/WebCore/bindings/js/kjs_window.cpp

    r25249 r25545  
    13601360    if (!window->isSafeScript(exec))
    13611361        return jsUndefined();
    1362     if (args.size() >= 2 && v->isString()) {
     1362    if (v->isString()) {
    13631363      int i = args[1]->toInt32(exec);
    13641364      int r = (const_cast<Window*>(window))->installTimeout(s, i, true /*single shot*/);
    13651365      return jsNumber(r);
    13661366    }
    1367     else if (args.size() >= 2 && v->isObject() && static_cast<JSObject *>(v)->implementsCall()) {
     1367    else if (v->isObject() && static_cast<JSObject *>(v)->implementsCall()) {
    13681368      JSValue *func = args[0];
    13691369      int i = args[1]->toInt32(exec);
Note: See TracChangeset for help on using the changeset viewer.