Changeset 128349 in webkit
- Timestamp:
- Sep 12, 2012 12:25:52 PM (12 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r128348 r128349 1 2012-09-12 Christophe Dumez <christophe.dumez@intel.com> 2 3 Regression(r128338): Broke Windows build 4 https://bugs.webkit.org/show_bug.cgi?id=96537 5 6 Unreviewed build fix. 7 8 Fix Apple-Win build by allocating array dynamically 9 since its size is not constant. 10 11 * WebKitTestRunner/InjectedBundle/TestRunner.cpp: 12 (WTR::stringArrayToJS): 13 1 14 2012-09-12 Alex Sakhartchouk <alexst@chromium.org> 2 15 -
trunk/Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp
r128338 r128349 47 47 #include <wtf/CurrentTime.h> 48 48 #include <wtf/HashMap.h> 49 #include <wtf/OwnArrayPtr.h> 50 #include <wtf/PassOwnArrayPtr.h> 49 51 #include <wtf/text/StringBuilder.h> 50 52 … … 335 337 const size_t count = WKArrayGetSize(strings); 336 338 337 JSValueRef jsStringsArray[count];339 OwnArrayPtr<JSValueRef> jsStringsArray = adoptArrayPtr(new JSValueRef[count]); 338 340 for (size_t i = 0; i < count; ++i) { 339 341 WKStringRef stringRef = static_cast<WKStringRef>(WKArrayGetItemAtIndex(strings, i)); … … 342 344 } 343 345 344 return JSObjectMakeArray(context, count, jsStringsArray , 0);346 return JSObjectMakeArray(context, count, jsStringsArray.get(), 0); 345 347 } 346 348
Note: See TracChangeset
for help on using the changeset viewer.