@lanodan@queer.hacktivis.me @piggo@piggo.space @domi@donotsta.re @iacore@mastodon.de that happened because within your .toString, this refers to a String object, and since == is a "loosely equal" operator, it implicitly calls .toString to coerce it to a primitive, resulting in an infinite loop
and arrow function doesn't work because by definition arrow functions always use parent this, that's the main difference between them and function functions
something like this works
Embed Notice
HTML Code
Corresponding Notice
- Embed this notice
alina 🌸 (teidesu@very.stupid.fish)'s status on Saturday, 03-Feb-2024 04:52:50 JSTalina 🌸