2008-05-13 Matt Lilek <webkit@mattlilek.com>

        Not reviewed, build fix.

        * kjs/date_object.cpp:
        (KJS::DateObjectFuncImp::callAsFunction):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33424 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 88f0e02f
2008-05-13 Matt Lilek <webkit@mattlilek.com>
Not reviewed, build fix.
* kjs/date_object.cpp:
(KJS::DateObjectFuncImp::callAsFunction):
2008-05-13 Anders Carlsson <andersca@apple.com> 2008-05-13 Anders Carlsson <andersca@apple.com>
Reviewed by Sam. Reviewed by Sam.
......
...@@ -573,7 +573,7 @@ JSValue *DateObjectFuncImp::callAsFunction(ExecState* exec, JSObject*, const Lis ...@@ -573,7 +573,7 @@ JSValue *DateObjectFuncImp::callAsFunction(ExecState* exec, JSObject*, const Lis
return jsNumber(parseDate(args[0]->toString(exec))); return jsNumber(parseDate(args[0]->toString(exec)));
else if (id == Now) else if (id == Now)
return jsNumber(getCurrentUTCTime()); return jsNumber(getCurrentUTCTime());
} else { // UTC else { // UTC
int n = args.size(); int n = args.size();
if (isnan(args[0]->toNumber(exec)) if (isnan(args[0]->toNumber(exec))
|| isnan(args[1]->toNumber(exec)) || isnan(args[1]->toNumber(exec))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment