| Index: src/js/harmony-unicode-regexps.js
|
| diff --git a/src/js/harmony-unicode-regexps.js b/src/js/harmony-unicode-regexps.js
|
| index aa8fc76bd5eff987577e14997b01b14a82799366..b24bbdf2c545975c7455588ebc5df7c902139716 100644
|
| --- a/src/js/harmony-unicode-regexps.js
|
| +++ b/src/js/harmony-unicode-regexps.js
|
| @@ -24,8 +24,10 @@ utils.Import(function(from) {
|
| // ES6 21.2.5.15.
|
| function RegExpGetUnicode() {
|
| if (!IS_REGEXP(this)) {
|
| + // TODO(littledan): Remove this RegExp compat workaround
|
| if (this === GlobalRegExpPrototype) {
|
| %IncrementUseCounter(kRegExpPrototypeUnicodeGetter);
|
| + return UNDEFINED;
|
| }
|
| throw MakeTypeError(kRegExpNonRegExp, "RegExp.prototype.unicode");
|
| }
|
|
|