'use strict';varGetIntrinsic=require('../GetIntrinsic');var$EvalError=GetIntrinsic('%EvalError%');varDaysInYear=require('./DaysInYear');varYearFromTime=require('./YearFromTime');// https://ecma-international.org/ecma-262/5.1/#sec-15.9.1.3module.exports=functionInLeapYear(t){vardays=DaysInYear(YearFromTime(t));if(days===365){return0;}if(days===366){return1;}thrownew$EvalError('Assertion failed: there are not 365 or 366 days in a year, got: '+days);};