Index: src/js/regexp.js |
diff --git a/src/js/regexp.js b/src/js/regexp.js |
index f4c6f8a6cee8c09c00e2551be127ae42677e0567..9f2a1688c8a25f47fbba8e3fca8eec87b292e112 100644 |
--- a/src/js/regexp.js |
+++ b/src/js/regexp.js |
@@ -282,7 +282,7 @@ function RegExpToString() { |
throw MakeTypeError( |
kIncompatibleMethodReceiver, 'RegExp.prototype.toString', this); |
} |
- return '/' + TO_STRING(this.pattern()) + '/' + TO_STRING(this.flags()); |
+ return '/' + TO_STRING(this.source) + '/' + TO_STRING(this.flags); |
} |
var result = '/' + REGEXP_SOURCE(this) + '/'; |
if (REGEXP_GLOBAL(this)) result += 'g'; |