Index: src/js/harmony-regexp.js |
diff --git a/src/js/harmony-regexp.js b/src/js/harmony-regexp.js |
index e080cda29b34e274a0b294dd8428276539645cba..2e3bd06707965a0aaa1a4fa86fe16f644af998db 100644 |
--- a/src/js/harmony-regexp.js |
+++ b/src/js/harmony-regexp.js |
@@ -12,7 +12,6 @@ |
// Imports |
var GlobalRegExp = global.RegExp; |
-var GlobalRegExpPrototype = GlobalRegExp.prototype; |
var MakeTypeError; |
var regExpFlagsSymbol = utils.ImportNow("regexp_flags_symbol"); |
@@ -38,17 +37,10 @@ |
return result; |
} |
-const kRegExpPrototypeStickyGetter = 11; |
// ES6 21.2.5.12. |
function RegExpGetSticky() { |
if (!IS_REGEXP(this)) { |
- // Compat fix: RegExp.prototype.sticky == undefined; UseCounter tracks it |
- // TODO(littledan): Remove this workaround or standardize it |
- if (this === GlobalRegExpPrototype) { |
- %IncrementUseCounter(kRegExpPrototypeStickyGetter); |
- return UNDEFINED; |
- } |
throw MakeTypeError(kRegExpNonRegExp, "RegExp.prototype.sticky"); |
} |
return !!REGEXP_STICKY(this); |