X-Git-Url: https://git.webkit.org/?p=WebKit.git;a=blobdiff_plain;f=JavaScriptCore%2Fruntime%2FStringPrototype.cpp;h=ceb6b1ea2bffa8408a8394a295c648341e2f4604;hp=d6939cb5b41b45f3018a70fab03909ca2c9e294e;hb=0a30b7a7bdbe7872b4a1ac722bebf6a6e74624a5;hpb=acd41788cd0f91eddfef8f7d15027880af62fb0c diff --git a/JavaScriptCore/runtime/StringPrototype.cpp b/JavaScriptCore/runtime/StringPrototype.cpp index d6939cb5b41b..ceb6b1ea2bff 100644 --- a/JavaScriptCore/runtime/StringPrototype.cpp +++ b/JavaScriptCore/runtime/StringPrototype.cpp @@ -1,6 +1,7 @@ /* * Copyright (C) 1999-2001 Harri Porten (porten@kde.org) * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. + * Copyright (C) 2009 Torch Mobile, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -575,7 +576,7 @@ JSValue JSC_HOST_CALL stringProtoFuncSplit(ExecState* exec, JSObject*, JSValue t } int pos = 0; while (i != limit && pos < s.size()) { - OwnArrayPtr ovector; + Vector ovector; int mpos = reg->match(s, pos, &ovector); if (mpos < 0) break;