mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-02 16:59:30 +08:00
14 lines
334 B
Text
14 lines
334 B
Text
'use strict';
|
|
|
|
var getPolyfill = require('./polyfill');
|
|
var define = require('define-properties');
|
|
|
|
module.exports = function shimPadEnd() {
|
|
var polyfill = getPolyfill();
|
|
define(String.prototype, { padEnd: polyfill }, {
|
|
padEnd: function testPadEnd() {
|
|
return String.prototype.padEnd !== polyfill;
|
|
}
|
|
});
|
|
return polyfill;
|
|
};
|