source: imaps-frontend/node_modules/core-js/modules/es.date.get-year.js@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 631 bytes
Line 
1'use strict';
2var $ = require('../internals/export');
3var uncurryThis = require('../internals/function-uncurry-this');
4var fails = require('../internals/fails');
5
6// IE8- non-standard case
7var FORCED = fails(function () {
8 // eslint-disable-next-line es/no-date-prototype-getyear-setyear -- detection
9 return new Date(16e11).getYear() !== 120;
10});
11
12var getFullYear = uncurryThis(Date.prototype.getFullYear);
13
14// `Date.prototype.getYear` method
15// https://tc39.es/ecma262/#sec-date.prototype.getyear
16$({ target: 'Date', proto: true, forced: FORCED }, {
17 getYear: function getYear() {
18 return getFullYear(this) - 1900;
19 }
20});
Note: See TracBrowser for help on using the repository browser.