Changeset 51369 in webkit
- Timestamp:
- Nov 24, 2009 6:45:02 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r51365 r51369 1 2009-11-24 Jason Smith <dark.panda@gmail.com> 2 3 Reviewed by Alexey Proskuryakov. 4 5 RegExp#exec's returned Array-like object behaves differently from 6 regular Arrays 7 https://bugs.webkit.org/show_bug.cgi?id=31689 8 9 * LayoutTests/fast/js/regexp-in-and-foreach-handling.html: Added. 10 * LayoutTests/fast/js/script-tests/regexp-in-and-foreach-handling.js: Added. 11 * LayoutTests/fast/js/regexp-in-and-foreach-handling-expected.txt: Added. 12 1 13 2009-11-24 Jens Alfke <snej@chromium.org> 2 14 -
trunk/JavaScriptCore/ChangeLog
r51352 r51369 1 2009-11-24 Jason Smith <dark.panda@gmail.com> 2 3 Reviewed by Alexey Proskuryakov. 4 5 RegExp#exec's returned Array-like object behaves differently from 6 regular Arrays 7 https://bugs.webkit.org/show_bug.cgi?id=31689 8 9 * JavaScriptCore/runtime/RegExpConstructor.cpp: ensure that undefined 10 values are added to the returned RegExpMatchesArray 11 1 12 2009-11-24 Oliver Hunt <oliver@apple.com> 2 13 -
trunk/JavaScriptCore/runtime/RegExpConstructor.cpp
r49365 r51369 133 133 if (start >= 0) 134 134 JSArray::put(exec, i, jsSubstring(exec, d->lastInput, start, d->lastOvector()[2 * i + 1] - start)); 135 else 136 JSArray::put(exec, i, jsUndefined()); 135 137 } 136 138
Note: See TracChangeset
for help on using the changeset viewer.