Reviewers: mvstanton,
Description:
Version 4.1.0.9 (cherry-pick)
Merged 3a53f2fda376f5f5a2fb723200f50a65dbe43664
Correctly load RegExp.source from the holder.
BUG=chromium:447561
LOG=N
[email protected]
Please review this at https://codereview.chromium.org/856033002/
Base URL: https://chromium.googlesource.com/v8/[email protected]
Affected files (+4, -4 lines):
M src/accessors.cc
M src/version.cc
Index: src/accessors.cc
diff --git a/src/accessors.cc b/src/accessors.cc
index
6b7ec058d93c59bfda56bf936dba56b5fcee9ecc..662a9e126b04b1bad9489ddb468c09666436eff1
100644
--- a/src/accessors.cc
+++ b/src/accessors.cc
@@ -382,9 +382,9 @@ void Accessors::RegExpSourceGetter(
i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate());
HandleScope scope(isolate);
- Handle<Object> receiver =
- Utils::OpenHandle(*v8::Local<v8::Value>(info.This()));
- Handle<JSRegExp> regexp = Handle<JSRegExp>::cast(receiver);
+ Handle<Object> holder =
+ Utils::OpenHandle(*v8::Local<v8::Value>(info.Holder()));
+ Handle<JSRegExp> regexp = Handle<JSRegExp>::cast(holder);
Handle<String> result;
if (regexp->TypeTag() == JSRegExp::NOT_COMPILED) {
result = isolate->factory()->empty_string();
Index: src/version.cc
diff --git a/src/version.cc b/src/version.cc
index
837cbd73963d06d4518689bfd5e3d3d3110e5ce5..e8b621a5626e7ed3ff0e15c9594fd3825d7abda0
100644
--- a/src/version.cc
+++ b/src/version.cc
@@ -35,7 +35,7 @@
#define MAJOR_VERSION 4
#define MINOR_VERSION 1
#define BUILD_NUMBER 0
-#define PATCH_LEVEL 8
+#define PATCH_LEVEL 9
// Use 1 for candidates and 0 otherwise.
// (Boolean macro values are not supported by all preprocessors.)
#define IS_CANDIDATE_VERSION 0
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.