Skip to content

Instantly share code, notes, and snippets.

@mraleph
Created April 26, 2011 19:53
Show Gist options
  • Save mraleph/942983 to your computer and use it in GitHub Desktop.
Save mraleph/942983 to your computer and use it in GitHub Desktop.
Index: src/runtime.cc
===================================================================
--- src/runtime.cc (revision 7683)
+++ src/runtime.cc (working copy)
@@ -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();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment