From a2fe22ae9cbdbfa17f11967cf0a27410b5c605e5 Mon Sep 17 00:00:00 2001 From: Denis Pushkarev Date: Tue, 14 Jun 2022 19:54:19 +0700 Subject: [PATCH] add `v` flag to `RegExp.prototype.flags` implementation --- CHANGELOG.md | 1 + packages/core-js/internals/regexp-flags.js | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d897974ae22..dc473647e8bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## Changelog ##### Unreleased - Fixed possible error on multiple `core-js` copies, [#1091](https://github.com/zloirock/core-js/issues/1091) +- Added `v` flag to `RegExp.prototype.flags` implementation in case if current V8 bugs will not be fixed before this flag implementation ##### [3.23.0 - 2022.06.14](https://github.com/zloirock/core-js/releases/tag/v3.23.0) - [`Array` find from last](https://github.com/tc39/proposal-array-find-from-last) moved to the stable ES, according to June 2022 TC39 meeting: diff --git a/packages/core-js/internals/regexp-flags.js b/packages/core-js/internals/regexp-flags.js index cbd4e204d5e6..6d73e1c2cdb7 100644 --- a/packages/core-js/internals/regexp-flags.js +++ b/packages/core-js/internals/regexp-flags.js @@ -12,6 +12,7 @@ module.exports = function () { if (that.multiline) result += 'm'; if (that.dotAll) result += 's'; if (that.unicode) result += 'u'; + if (that.unicodeSets) result += 'v'; if (that.sticky) result += 'y'; return result; };