@boots that seems like it's just evaluating +{} in the latter case..?

Follow

@edef (also, []+{} is "[object Object]", so)

@boots {} can be interpreted as a block, but it doesn't make sense for it to do that here
[]+{} is just [].toString()+({}).toString which is ''+'[object Object]'

@edef {a: +{}} returns NaN in the same conditions as {}+{} which is interesting

Sign in to participate in the conversation
Computer Fairies

Computer Fairies is a Mastodon instance that aims to be as queer, friendly and furry as possible. We welcome all kinds of computer fairies!