Revision: 7685
Author: [email protected]
Date: Wed Apr 27 01:20:38 2011
Log: Fix raw pointer misuse in StringReplaceRegExpWithEmptyString.
Committing http://codereview.chromium.org/6905035/ for vegorov
http://code.google.com/p/v8/source/detail?r=7685
Modified:
/branches/bleeding_edge/src/runtime.cc
=======================================
--- /branches/bleeding_edge/src/runtime.cc Tue Apr 26 06:53:19 2011
+++ /branches/bleeding_edge/src/runtime.cc Wed Apr 27 01:20:38 2011
@@ -2713,7 +2713,7 @@
end = RegExpImpl::GetCapture(match_info_array, 1);
}
- int length = subject->length();
+ int length = subject_handle->length();
int new_length = length - (end - start);
if (new_length == 0) {
return isolate->heap()->empty_string();
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev