Mercurial > hg > nginx-site
comparison xml/en/docs/njs_about.xml @ 2129:4212f4520070
Updated "About njs" with methods supported in njs-0.2.0.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Tue, 03 Apr 2018 20:38:25 +0300 |
parents | 59a3cc84f507 |
children | 302fbdd94a04 |
comparison
equal
deleted
inserted
replaced
2128:59a3cc84f507 | 2129:4212f4520070 |
---|---|
7 <!DOCTYPE article SYSTEM "../../../dtd/article.dtd"> | 7 <!DOCTYPE article SYSTEM "../../../dtd/article.dtd"> |
8 | 8 |
9 <article name="About njs" | 9 <article name="About njs" |
10 link="/en/docs/njs_about.html" | 10 link="/en/docs/njs_about.html" |
11 lang="en" | 11 lang="en" |
12 rev="14"> | 12 rev="15"> |
13 | 13 |
14 <section id="summary"> | 14 <section id="summary"> |
15 | 15 |
16 <para> | 16 <para> |
17 njs is a subset of the JavaScript language that allows | 17 njs is a subset of the JavaScript language that allows |
174 <literal>ReferenceError</literal>, <literal>SyntaxError</literal>, | 174 <literal>ReferenceError</literal>, <literal>SyntaxError</literal>, |
175 <literal>TypeError</literal>, <literal>URIError</literal> | 175 <literal>TypeError</literal>, <literal>URIError</literal> |
176 </listitem> | 176 </listitem> |
177 | 177 |
178 <listitem> | 178 <listitem> |
179 <literal>setTimeout</literal>, <literal>clearTimeout</literal> functions | |
180 </listitem> | |
181 | |
182 <listitem> | |
179 <literal>File system</literal> methods | 183 <literal>File system</literal> methods |
180 (Node.js <link url="https://nodejs.org/api/fs.html#fs_file_system">style</link>): | 184 (<link url="https://nodejs.org/api/fs.html#fs_file_system">Node.js style</link>): |
181 <literal>fs.readFile</literal>, <literal>fs.readFileSync</literal>, | 185 <literal>fs.readFile</literal>, <literal>fs.readFileSync</literal>, |
182 <literal>fs.appendFile</literal>, <literal>fs.appendFileSync</literal>, | 186 <literal>fs.appendFile</literal>, <literal>fs.appendFileSync</literal>, |
183 <literal>fs.writeFile</literal>, <literal>fs.writeFileSync</literal> | 187 <literal>fs.writeFile</literal>, <literal>fs.writeFileSync</literal> |
184 </listitem> | 188 </listitem> |
185 | 189 |
190 <listitem> | |
191 <literal>Crypto</literal> methods | |
192 (<link url="https://nodejs.org/api/crypto.html#crypto_class_hash">Node.js style</link>): | |
193 <literal>crypto.createHash</literal>, | |
194 <literal>crypto.createHmac</literal> | |
195 </listitem> | |
196 | |
186 </list> | 197 </list> |
187 </para> | 198 </para> |
188 | 199 |
189 </section> | 200 </section> |
190 | 201 |
209 <listitem> | 220 <listitem> |
210 <literal>eval</literal> function | 221 <literal>eval</literal> function |
211 </listitem> | 222 </listitem> |
212 | 223 |
213 <listitem> | 224 <listitem> |
214 <literal>setTimeout</literal>, <literal>setInterval</literal>, | 225 <literal>setInterval</literal>, |
215 <literal>setImmediate</literal> functions | 226 <literal>setImmediate</literal> functions |
216 </listitem> | 227 </listitem> |
217 | 228 |
218 <listitem> | 229 <listitem> |
219 non-integer fractions (<literal>.235</literal>), | 230 non-integer fractions (<literal>.235</literal>), |