Commit af71b107 authored by aroben@apple.com's avatar aroben@apple.com

Use KJS::List::getSlice instead of reimplementing it

        Rubberstamped and suggested by Sam Weinig.

        * bindings/js/JSConsoleCustom.cpp:
        (WebCore::JSConsole::assertCondition):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33949 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent ff96f4c4
2008-05-20 Adam Roben <aroben@apple.com>
Use KJS::List::getSlice instead of reimplementing it
Rubberstamped and suggested by Sam Weinig.
* bindings/js/JSConsoleCustom.cpp:
(WebCore::JSConsole::assertCondition):
2008-05-20 Kevin Calhoun <kcalhoun@apple.com>
Reviewed by Darin.
......@@ -59,8 +59,7 @@ JSValue* JSConsole::warn(ExecState* exec, const List& arguments)
JSValue* JSConsole::assertCondition(ExecState* exec, const List& arguments)
{
List messageParameters;
for (unsigned i = 1; i < arguments.size(); ++i)
messageParameters.append(arguments[i]);
arguments.getSlice(1, messageParameters);
impl()->assertCondition(arguments[0]->toBoolean(exec), exec, messageParameters);
return jsUndefined();
......
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