Skip to content

Commit

Permalink
Safari 10 string padding bug detection extend to some Safari-based br…
Browse files Browse the repository at this point in the history
…owsers
  • Loading branch information
zloirock committed Mar 31, 2021
1 parent 72646fd commit 19bb1a5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Changelog
##### Unreleased
- Nothing
- Safari 10 string padding bug detection extend to some Safari-based browsers

##### 3.10.0 - 2021.03.31
- [`Array` find from last proposal](https://github.com/tc39/proposal-array-find-from-last) moved to the stage 2, [March TC39 meeting](https://github.com/babel/proposals/issues/71#issuecomment-795916535)
Expand Down
2 changes: 1 addition & 1 deletion packages/core-js/internals/string-pad-webkit-bug.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
var userAgent = require('../internals/engine-user-agent');

// eslint-disable-next-line unicorn/no-unsafe-regex -- safe
module.exports = /Version\/10(?:\.\d+){1,2}(?: Mobile\/\w+)? Safari\//.test(userAgent);
module.exports = /Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(userAgent);
2 changes: 1 addition & 1 deletion tests/compat/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if (v8) {
var IS_NODE = Object.prototype.toString.call(process) == '[object process]';

// eslint-disable-next-line unicorn/no-unsafe-regex -- safe
var WEBKIT_STRING_PAD_BUG = /Version\/10(?:\.\d+){1,2}?(?: Mobile\/\w+)? Safari\//.test(USERAGENT);
var WEBKIT_STRING_PAD_BUG = /Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(USERAGENT);

var DESCRIPTORS_SUPPORT = function () {
return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a == 7;
Expand Down

0 comments on commit 19bb1a5

Please sign in to comment.