4 ms·
It's very, very weird to speak of TypeScript and JavaScript as two separate languages here. There is no TypeScript RegExp, there is only the JavaScript RegExp
by spankalee 1y ago
It's very, very weird to speak of TypeScript and JavaScript as two separate languages here.
There is no TypeScript RegExp, there is only the JavaScript RegExp as implemented in various VMs. There is no TypeScript VM, only JavaScript VMs. And there are no TypeScript CVEs unless it's against the TypeScript compiler, language server, etc.
- serial_dev 1y agoI was also confused first, I thought it is against the TypeScript compiler, too.
- maxloh 1y agoDeno and Node use V8 under the hood, so the code should essentially run on the same VM regardless.
- DemocracyFTW2 1y agoThis bothered me too; I think it should be re-framed as a difference between different JS engines (NodeJS vs Deno) because that's what happening. TS is just a fancy way to write JavaScript after all and a lot of TS source code gets literally erased in order to obtain runnable JS. Deno has been able to execute pure JavaScript from day one while NodeJS can now also execute a subset of TS without a visible translation step, all of which makes framing NodeJS vs Deno as "JavaScript vs TypeScript" even weirder.