GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Piggo :verified_horse: (piggo@piggo.space)'s status on Saturday, 03-Feb-2024 02:44:00 JST Piggo :verified_horse: Piggo :verified_horse:
    • Tulip ?️‍⚧️
    • 1A 🢒 λC
    @domi @iacore wow i thought this shit is protected somehow but no it so is not
    In conversation about a year ago from piggo.space permalink

    Attachments


    1. https://piggo.space/media/04e32e4ed0a211e3879edc65c4b49795bc6e7fae89ae72c66f32b81778995d12.png
    • Embed this notice
      Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Saturday, 03-Feb-2024 02:43:59 JST Haelwenn /элвэн/ :triskell: Haelwenn /элвэн/ :triskell:
      in reply to
      • Tulip ?️‍⚧️
      • 1A 🢒 λC

      @piggo @domi @iacore ⚠ Warning: I somehow bork my browser web process while doing this one, ended up in an infinite loop.

      btw for some reason unknown to myself being a JS-noob, you need to use function() {} and not () => {}.

      $ node > String.prototype.toString = function() { if(this == "meow") { return ":3"; } else { throw "tangled yarn"; } }; [Function (anonymous)] > "meow".toString() ':3'
      In conversation about a year ago permalink
    • Embed this notice
      alina 🌸 (teidesu@very.stupid.fish)'s status on Saturday, 03-Feb-2024 04:52:50 JST alina 🌸 alina 🌸
      in reply to
      • Haelwenn /элвэн/ :triskell:
      • Tulip ?️‍⚧️
      • 1A 🢒 λC

      @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

      In conversation about a year ago permalink

      Attachments


      1. https://very.stupid.fish/files/bbd61c08-3968-40d7-86ab-334dd74e67f7
      Haelwenn /элвэн/ :triskell: likes this.
    • Embed this notice
      Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Saturday, 03-Feb-2024 04:55:37 JST Haelwenn /элвэн/ :triskell: Haelwenn /элвэн/ :triskell:
      in reply to
      • Tulip ?️‍⚧️
      • 1A 🢒 λC
      • alina 🌸
      @teidesu @domi @iacore @piggo Oooh right, JS loves implicitly casting data in just about any situation, which is something I just can't get used to.
      In conversation about a year ago permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.