it’s definitely a ⁜little⁜ funky because it calls ToString on ⁜the resulting primitive⁜ not on the original value so
"that is " + {
toString () { return "false" },
valueOf () { return true },
}
returns "that is true"
it just calls ToPrimitive on both sides and then :—
• if the result on either side is a string, calls ToString on both sides and concatenates them
• otherwise, it calls ToNumeric on both sides and attempts to add them
very interestingly, Safari’s X·M·L processor moves comments present in the internal subset of the D·T·D out of the DOCTYPE and places them just before the root element
i would like to say this is non‐standard behaviour, but there actually ⁜is⁜ no standard regarding taking an X·M·L document and parsing it into the D·O·M
ye mighty, whomst think thyselves tall
look upon my works, and weep
https://gist.github.com/marrus-sh/ee76c6aa07292988597649ebcd5de5a5
; {
const re = /fails/uy
re.lastIndex = "this test ".length
"this test fails".replace(re, "succeeds")
}
new tim linghaus
memory sketches ii
https://timlinghaus.bandcamp.com/album/memory-sketches-ii
Administrator / Public Relations for GlitchCat. Not actually glitchy, nor a cat. I wrote the rules for this instance.
“Constitutionally incapable of not going hard” — @aescling
“Fedi Cassandra” – @Satsuma
I HAVE EXPERIENCE IN THINGS. YOU CAN JUST @ ME.
I work for a library but I post about Zelda fanfiction.