Index: src/builtins/builtins-regexp.cc |
diff --git a/src/builtins/builtins-regexp.cc b/src/builtins/builtins-regexp.cc |
index c0247cb77bcbb35c6a8e050ac19a14dffa5040d5..f3c116cc8590aef07a48f70ac325157a84037ef5 100644 |
--- a/src/builtins/builtins-regexp.cc |
+++ b/src/builtins/builtins-regexp.cc |
@@ -852,12 +852,9 @@ TF_BUILTIN(RegExpPrototypeCompile, RegExpBuiltinsAssembler) { |
Bind(&next); |
} |
- RegExpInitialize(context, receiver, var_pattern.value(), var_flags.value()); |
- |
- // Return undefined for compatibility with JSC. |
- // See http://crbug.com/585775 for web compat details. |
- |
- Return(UndefinedConstant()); |
+ Node* const result = RegExpInitialize(context, receiver, var_pattern.value(), |
+ var_flags.value()); |
+ Return(result); |
} |
// ES6 21.2.5.10. |