What does @cc_on mean in JavaScript?
Asked Answered
J

1

18

Sometimes I see @cc_on in JavaScript. What does it mean?

Joris answered 27/8, 2009 at 14:23 Comment(0)
V
18

It's for conditional compilation. Seems to be a feature of Microsoft's "JScript" ECMAScript implementation.

Vincent answered 27/8, 2009 at 14:25 Comment(1)
Not IE but JScript (ECMAScript implementation used in IE). This is important because JScript, for example, is also used in ASP, Windows Script Host, etc. See en.wikipedia.org/wiki/JScriptBerniecebernier

© 2022 - 2024 — McMap. All rights reserved.