aboutsummaryrefslogtreecommitdiff
path: root/node_modules/core-js/modules/es7.string.pad-end.js
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-12-27 19:33:54 +0100
committerFlorian Dold <florian.dold@gmail.com>2017-12-27 19:34:16 +0100
commit0e6de2c31dbf8c21277481f112e99c52b913940f (patch)
tree91789032de3b8eec9d789acd1323f25fc5d08422 /node_modules/core-js/modules/es7.string.pad-end.js
parentceda0da31ad542c598c68146ae0712ca03df3d71 (diff)
node_modules
Diffstat (limited to 'node_modules/core-js/modules/es7.string.pad-end.js')
-rw-r--r--node_modules/core-js/modules/es7.string.pad-end.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/node_modules/core-js/modules/es7.string.pad-end.js b/node_modules/core-js/modules/es7.string.pad-end.js
index b8ed042f9..df55ce70b 100644
--- a/node_modules/core-js/modules/es7.string.pad-end.js
+++ b/node_modules/core-js/modules/es7.string.pad-end.js
@@ -2,8 +2,10 @@
// https://github.com/tc39/proposal-string-pad-start-end
var $export = require('./_export');
var $pad = require('./_string-pad');
+var userAgent = require('./_user-agent');
-$export($export.P, 'String', {
+// https://github.com/zloirock/core-js/issues/280
+$export($export.P + $export.F * /Version\/10\.\d+(\.\d+)? Safari\//.test(userAgent), 'String', {
padEnd: function padEnd(maxLength /* , fillString = ' ' */) {
return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, false);
}