"trojan duck" - A JS object that ducktypechecks right but does something unexpected, like turn existing logic inside out. cf. "duck tape"
Conversation
Replying to
"duck tape" - a trojan duck that became a permanent fix because the original code couldn't be changed for some reason.
1
1
Replying to
(I use these regularly in userscripts and reverse engineering, but only recently came up with a name for them)
1
Replying to
example techniques: toString: function () {...}, Proxy Objects, __proto__: ..., subverted instanceof checks, clobbered utility functions
