Index: src/regexp.js |
diff --git a/src/regexp.js b/src/regexp.js |
index 38d4496153909f41d98ada01cd18ee5fa367fe63..6ccabb20801943b337b1e1d28b238bd31cda3642 100644 |
--- a/src/regexp.js |
+++ b/src/regexp.js |
@@ -408,7 +408,7 @@ var lastMatchInfoOverride = null; |
function SetUpRegExp() { |
%CheckIsBootstrapping(); |
%FunctionSetInstanceClassName($RegExp, 'RegExp'); |
- %FunctionSetPrototype($RegExp, new $Object()); |
+ %FunctionSetPrototype($RegExp, new $RegExp()); |
%SetProperty($RegExp.prototype, 'constructor', $RegExp, DONT_ENUM); |
%SetCode($RegExp, RegExpConstructor); |