• FQQD@lemmy.ohaa.xyzdeleted by creatorM
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    i wonder which programming language this is from and what the error means

    • Emotional (he/him)@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 year ago

      In case you’re not making a joke or somebody else is wondering: this looks like a JavaScript error. Specifically, one that comes from trying to read . daylight from something that is undefined.

      For example, you can get a very similar error by running:

      const info = undefined; 
      console.log(info.daylight);
      

      Which in Chromium and in NodeJS v22 gives you this error:

      Uncaught TypeError: Cannot read properties of undefined (reading 'daylight') 
      
      • FQQD@lemmy.ohaa.xyzdeleted by creatorM
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 year ago

        Ah, thanks. I knew I’ve seen this kind of error somewhere before. Still interested in what a “daylight” variable would do for the code of an info display