Mercurial > hg > nginx-site
comparison xml/en/docs/njs_about.xml @ 1890:82ef6dd12534
Supported scopes, functions hoisting, cycle "for" with var in njs.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Wed, 18 Jan 2017 15:33:34 +0300 |
parents | e42f6c54ea5f |
children | 0227aa9b87de |
comparison
equal
deleted
inserted
replaced
1889:52e6eb31f3fc | 1890:82ef6dd12534 |
---|---|
7 <!DOCTYPE article SYSTEM "../../../dtd/article.dtd"> | 7 <!DOCTYPE article SYSTEM "../../../dtd/article.dtd"> |
8 | 8 |
9 <article name="About nginScript" | 9 <article name="About nginScript" |
10 link="/en/docs/njs_about.html" | 10 link="/en/docs/njs_about.html" |
11 lang="en" | 11 lang="en" |
12 rev="4"> | 12 rev="5"> |
13 | 13 |
14 <section id="summary"> | 14 <section id="summary"> |
15 | 15 |
16 <para> | 16 <para> |
17 nginScript is a subset of the JavaScript language that allows | 17 nginScript is a subset of the JavaScript language that allows |
148 | 148 |
149 <para> | 149 <para> |
150 <list type="bullet"> | 150 <list type="bullet"> |
151 | 151 |
152 <listitem> | 152 <listitem> |
153 Scopes | |
154 </listitem> | |
155 | |
156 <listitem> | |
157 ES6 <literal>let</literal> and <literal>const</literal> declarations | 153 ES6 <literal>let</literal> and <literal>const</literal> declarations |
158 </listitem> | |
159 | |
160 <listitem> | |
161 cycle <literal>for</literal> with <literal>var</literal> in declaration | |
162 (<literal>for (var...</literal>) | |
163 </listitem> | 154 </listitem> |
164 | 155 |
165 <listitem> | 156 <listitem> |
166 nested functions | 157 nested functions |
167 </listitem> | 158 </listitem> |
191 </listitem> | 182 </listitem> |
192 | 183 |
193 <listitem> | 184 <listitem> |
194 <literal>setTimeout</literal>, <literal>setInterval</literal>, | 185 <literal>setTimeout</literal>, <literal>setInterval</literal>, |
195 <literal>setImmediate</literal> functions | 186 <literal>setImmediate</literal> functions |
196 </listitem> | |
197 | |
198 <listitem> | |
199 functions hoisting | |
200 </listitem> | 187 </listitem> |
201 | 188 |
202 <listitem> | 189 <listitem> |
203 non-integer fractions (<literal>.235</literal>), | 190 non-integer fractions (<literal>.235</literal>), |
204 exponential (<literal>3.35e10</literal>), | 191 exponential (<literal>3.35e10</literal>), |