Index: src/runtime/runtime-regexp.cc |
diff --git a/src/runtime/runtime-regexp.cc b/src/runtime/runtime-regexp.cc |
index 932ebbb05941b0aee4ca11fec040eccb18ba8aa8..3d218f7fb8f233cdfb27fb117e553c7473cbf3c8 100644 |
--- a/src/runtime/runtime-regexp.cc |
+++ b/src/runtime/runtime-regexp.cc |
@@ -930,8 +930,7 @@ RUNTIME_FUNCTION(Runtime_MaterializeRegExpLiteral) { |
// function was created. We do not use the RegExp function from the |
// current native context because this might be the RegExp function |
// from another context which we should not have access to. |
Michael Starzinger
2015/02/25 21:32:33
nit: The entire comment is obsolete. Let's drop it
Toon Verwaest
2015/02/25 21:57:47
Done.
|
- Handle<JSFunction> constructor = Handle<JSFunction>( |
- JSFunction::NativeContextFromLiterals(*literals)->regexp_function()); |
+ Handle<JSFunction> constructor = isolate->regexp_function(); |
// Compute the regular expression literal. |
Handle<Object> regexp; |
ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |