What version of JavaScript does ASP Classic use?

懵懂的女人 提交于 2019-12-17 19:51:58

问题


The hacks I've seen for identifying a JavaScript version are all tailored to the browser, not an ASP Classic server running JavaScript.

(And no, I'm not running ASP Classic/JavaScript by choice.)


回答1:


Disclaimer: I'm an engineer on Microsoft's JavaScript team (specifically, Chakra).

The IActiveScript JavaScript engine used by "Classic ASP" is also used by the Windows Script Host (cscript and wscript) and was also used by IE for a while (IE9 and later, certainly does not).

Anyway, the JScript engine generally coincides with 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 much since the days of Windows 2000 (i.e. no new features have been added, the only changes have been for the benefit of security).

As such, it does not include features introduced in ECMAScript 5, like strict mode, or Array.isArray.



来源:https://stackoverflow.com/questions/28331519/what-version-of-javascript-does-asp-classic-use

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!