• Pika@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    9 days ago

    I hate that I noticed the syntax error on line 263 before I realized what the joke was. (at least I assume that 260 contains a function with a callback meaning it is missing the closing parenthesis)

    • master5o1@lemmy.nz
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      9 days ago

      My assumption is that it’s setting up an object to map element selectors -> callbacks.

      var specialElementHandlers = {
        '#editor': function() {
          return true;
        }
      };
      

      But yeah, could be something as

      var specialElementHandlers = Object.assign({}, defaultHandlers, {
        '#editor': function() {
          return true;
        }
      }; // missing closing parenthesis 
      
    • Aqarius@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      9 days ago

      Yeah, it’s not a joke, it literally happens all the time, and an error after block close generally means the system doesn’t think it’s closed, usually because a bracket isn’t paired off.