Index: src/js/regexp.js |
diff --git a/src/js/regexp.js b/src/js/regexp.js |
index a163952451f082ea50e12678a7a94fffa3e4052e..5d291245c7eed398e160aee4fa799590e8404d74 100644 |
--- a/src/js/regexp.js |
+++ b/src/js/regexp.js |
@@ -300,6 +300,10 @@ function RegExpSplit(string, limit) { |
throw MakeTypeError(kIncompatibleMethodReceiver, |
"RegExp.prototype.@@split", this); |
} |
+ |
+ // TODO(yangguo): Clone the RegExp using SpeciesConstructor |
+ // to change the flags to turn 'y' on. |
+ |
var separator = this; |
var subject = TO_STRING(string); |