• Miaou
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 year ago

    Ugh? Why shouldn’t it be the same code?

    • scorpionix@feddit.de
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Because Browsers can’t run Typescript, they run JavaScript. That’s why the intermediate conversion step isneededd.

      • Miaou
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        1 year ago

        But your tests are running on the compiled code too. Nothing can be tested but handwritten assembly, with such approach