Index: src/string.js |
diff --git a/src/string.js b/src/string.js |
index 322e5ae6d8a8d645c46dfbe74d1d6b1f4d0ac2e5..b543a8e2a27b2848b6cd0e07a7ab8e4950b8eca3 100644 |
--- a/src/string.js |
+++ b/src/string.js |
@@ -546,9 +546,7 @@ function StringSearch(re) { |
CHECK_OBJECT_COERCIBLE(this, "String.prototype.search"); |
var regexp; |
- if (IS_STRING(re)) { |
- regexp = %_GetFromCache(STRING_TO_REGEXP_CACHE_ID, re); |
- } else if (IS_REGEXP(re)) { |
+ if (IS_REGEXP(re)) { |
regexp = re; |
} else { |
regexp = new GlobalRegExp(re); |