massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / modules / es.date.get-year.js
1 'use strict';
2 var $ = require('../internals/export');
3 var uncurryThis = require('../internals/function-uncurry-this');
4 var fails = require('../internals/fails');
5
6 var FORCED = fails(function () {
7   return new Date(16e11).getYear() !== 120;
8 });
9
10 var getFullYear = uncurryThis(Date.prototype.getFullYear);
11
12 // `Date.prototype.getYear` method
13 // https://tc39.es/ecma262/#sec-date.prototype.getyear
14 $({ target: 'Date', proto: true, forced: FORCED }, {
15   getYear: function getYear() {
16     return getFullYear(this) - 1900;
17   }
18 });