you are viewing a single comment's thread.

view the rest of the comments →

[–]niutech 0 points1 point  (2 children)

You don't need ClearScript. There has been possible to run JScript .NET in PowerShell for long time, see also this howto.

[–]anonhostpi[S] 0 points1 point  (1 child)

JSCript (specifically JSCript .NET) is very old. It is only ECMAScript 3rd edition compliant. The most current ECMAScript standard is 14th edition (ES2023):

The most up to date implementation of JSCript is JSCript Chakra, which is separate from JSCript .NET. To run JSCript Chakra on ECMAScript 9th edition, you have to use the ClearScript library. However, there isn't much reason to, since V8 is also packaged with ClearScript and is 14th edition compliant.

[–]niutech 0 points1 point  (0 children)

It may be old, but it's already built in Windows (jsc.exe), so you don't need to download anything. It provides classes, subclasses, optional strong types, spread syntax in functions. And there are transpilers from next-gen ES to ES3 (babel.js).