What version of JavaScript does ASP Classic use?

The hacks that I saw to identify the version of JavaScript are configured on the browser, not on the ASP Classic server running JavaScript.

(And no, I don't use ASP Classic / JavaScript by choice.)

+5
source share
1 answer

Disclaimer: I'm an engineer at the Microsoft JavaScript team (notably Chakra).

The IActiveScript JavaScript IActiveScript used by Classic ASP is also used by the Windows Script Host ( cscript and wscript ) and has also been used by IE for some time (IE9 and later, certainly not).

In any case, the JScript engine usually matches the ECMAScript 3.0 specification with some proprietary extensions (such as ActiveXObject ). The specification is available here: http://www.ecma-international.org/publications/files/ECMA-ST-ARCH/ECMA-262,%203rd%20edition,%20December%201999.pdf - this specification was written in 1999.

This version of JScript has not been updated since Windows 2000 (i.e. no new features were added, the only changes were in the interest of security).

Thus, it does not include functions introduced in ECMAScript 5, like strict mode, or Array.isArray .

+14
source

Source: https://habr.com/ru/post/1212656/


All Articles