Pika
link
fedilink
English
32
edit-2
1M

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)

No one seems to mention this but a lot of the time the code in the binary might not be the same code you see in your IDE so the line number doesn’t match. Intellij for example decompiles libraries when you open them and you have to press a button to download the actual source with all the comments and everything

@master5o1@lemmy.nz
link
fedilink
10
edit-2
1M

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 

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.

Create a post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 1 user online
  • 22 users / day
  • 120 users / week
  • 456 users / month
  • 2.2K users / 6 months
  • 1 subscriber
  • 1.69K Posts
  • 37.2K Comments
  • Modlog