Mercurial > hg > nginx-site
comparison xml/en/docs/njs/compatibility.xml @ 2569:2edc64c05b0e
Removed ECMAScript methods from njs Reference.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Tue, 14 Jul 2020 16:44:46 +0100 |
parents | 45cb60b3b7b2 |
children | 88b4976778d2 |
comparison
equal
deleted
inserted
replaced
2568:aa015272ea32 | 2569:2edc64c05b0e |
---|---|
7 <!DOCTYPE article SYSTEM "../../../../dtd/article.dtd"> | 7 <!DOCTYPE article SYSTEM "../../../../dtd/article.dtd"> |
8 | 8 |
9 <article name="Compatibility" | 9 <article name="Compatibility" |
10 link="/en/docs/njs/compatibility.html" | 10 link="/en/docs/njs/compatibility.html" |
11 lang="en" | 11 lang="en" |
12 rev="24" | 12 rev="25" |
13 toc="no"> | 13 toc="no"> |
14 | 14 |
15 <section> | 15 <section> |
16 | 16 |
17 <para> | 17 <para> |
19 <link url="http://www.ecma-international.org/ecma-262/5.1/">ECMAScript 5.1</link> | 19 <link url="http://www.ecma-international.org/ecma-262/5.1/">ECMAScript 5.1</link> |
20 (strict mode) with some | 20 (strict mode) with some |
21 <link url="http://www.ecma-international.org/ecma-262/6.0/">ECMAScript 6</link> | 21 <link url="http://www.ecma-international.org/ecma-262/6.0/">ECMAScript 6</link> |
22 and later extensions. | 22 and later extensions. |
23 The compliance is still evolving. | 23 The compliance is still evolving. |
24 </para> | |
25 | |
26 <para> | |
27 Definitions of njs specific properties and methods | |
28 not compliant with ECMAScript can be found in | |
29 <link doc="reference.xml">Reference</link>. | |
30 Definitions of njs properties and methods | |
31 compliant with ECMAScript can be found in | |
32 <link url="http://www.ecma-international.org/ecma-262/">ECMAScript | |
33 specification</link>. | |
34 </para> | |
35 | |
36 <para> | |
37 | |
24 </para> | 38 </para> |
25 | 39 |
26 </section> | 40 </section> |
27 | 41 |
28 | 42 |
182 <literal>String</literal> methods: | 196 <literal>String</literal> methods: |
183 <list type="bullet"> | 197 <list type="bullet"> |
184 | 198 |
185 <listitem> | 199 <listitem> |
186 ES5.1: | 200 ES5.1: |
187 <link doc="reference.xml" id="string_fromcharcode"><literal>fromCharCode</literal></link> | 201 <literal>fromCharCode</literal> |
188 </listitem> | 202 </listitem> |
189 | 203 |
190 <listitem> | 204 <listitem> |
191 ES6: | 205 ES6: |
192 <link doc="reference.xml" id="string_fromcodepoint"><literal>fromCodePoint</literal></link> | 206 <literal>fromCodePoint</literal> |
193 </listitem> | 207 </listitem> |
194 </list> | 208 </list> |
195 | 209 |
196 </listitem> | 210 </listitem> |
197 | 211 |
199 <literal>String</literal> instance methods: | 213 <literal>String</literal> instance methods: |
200 <list type="bullet"> | 214 <list type="bullet"> |
201 | 215 |
202 <listitem> | 216 <listitem> |
203 ES5.1: | 217 ES5.1: |
204 <link doc="reference.xml" id="string_charat"><literal>charAt</literal></link>, | 218 <literal>charAt</literal>, |
205 <link doc="reference.xml" id="string_concat"><literal>concat</literal></link>, | 219 <literal>concat</literal>, |
206 <link doc="reference.xml" id="string_indexof"><literal>indexOf</literal></link>, | 220 <literal>indexOf</literal>>, |
207 <link doc="reference.xml" id="string_lastindexof"><literal>lastIndexOf</literal></link>, | 221 <literal>lastIndexOf</literal>, |
208 <link doc="reference.xml" id="string_match"><literal>match</literal></link>, | 222 <literal>match</literal>, |
209 <link doc="reference.xml" id="string_replace"><literal>replace</literal></link> | 223 <literal>replace</literal>, |
210 <link doc="reference.xml" id="string_search"><literal>search</literal></link>, | 224 <literal>search</literal>, |
211 <link doc="reference.xml" id="string_slice"><literal>slice</literal></link>, | 225 <literal>slice</literal>, |
212 <link doc="reference.xml" id="string_split"><literal>split</literal></link>, | 226 <literal>split</literal>, |
213 <link doc="reference.xml" id="string_substr"><literal>substr</literal></link>, | 227 <literal>substr</literal>, |
214 <link doc="reference.xml" id="string_substring"><literal>substring</literal></link>, | 228 <literal>substring</literal>, |
215 <link doc="reference.xml" id="string_tolowercase"><literal>toLowerCase</literal></link>, | 229 <literal>toLowerCase</literal>, |
216 <link doc="reference.xml" id="string_trim"><literal>trim</literal></link>, | 230 <literal>trim</literal>, |
217 <link doc="reference.xml" id="string_touppercase"><literal>toUpperCase</literal></link> | 231 <literal>toUpperCase</literal> |
218 </listitem> | 232 </listitem> |
219 | 233 |
220 <listitem> | 234 <listitem> |
221 ES6: | 235 ES6: |
222 <link doc="reference.xml" id="string_codepointat"><literal>codePointAt</literal></link>, | 236 <literal>codePointAt</literal>, |
223 <link doc="reference.xml" id="string_endswith"><literal>endsWith</literal></link>, | 237 <literal>endsWith</literal>, |
224 <link doc="reference.xml" id="string_includes"><literal>includes</literal></link>, | 238 <literal>includes</literal>, |
225 <link doc="reference.xml" id="string_repeat"><literal>repeat</literal></link>, | 239 <literal>repeat</literal>, |
226 <link doc="reference.xml" id="string_startswith"><literal>startsWith</literal></link> | 240 <literal>startsWith</literal> |
227 </listitem> | 241 </listitem> |
228 | 242 |
229 <listitem> | 243 <listitem> |
230 ES8: | 244 ES8: |
231 <link doc="reference.xml" id="string_padend"><literal>padEnd</literal></link>, | 245 <literal>padEnd</literal>, |
232 <link doc="reference.xml" id="string_padstart"><literal>padStart</literal></link> | 246 <literal>padStart</literal> |
233 </listitem> | 247 </listitem> |
234 | 248 |
235 <listitem> | 249 <listitem> |
236 ES9: | 250 ES9: |
237 <link doc="reference.xml" id="string_trimend"><literal>trimEnd</literal></link> | 251 <literal>trimEnd</literal> |
238 (<link doc="changes.xml" id="njs0.3.4">0.3.4</link>), | 252 (<link doc="changes.xml" id="njs0.3.4">0.3.4</link>), |
239 <link doc="reference.xml" id="string_trimstart"><literal>trimStart</literal></link> | 253 <literal>trimStart</literal> |
240 (<link doc="changes.xml" id="njs0.3.4">0.3.4</link>) | 254 (<link doc="changes.xml" id="njs0.3.4">0.3.4</link>) |
241 </listitem> | 255 </listitem> |
242 | 256 |
243 <listitem> | 257 <listitem> |
244 non-standard: | 258 non-standard: |
245 <link doc="reference.xml" id="string_bytesfrom"><literal>bytesFrom</literal></link> (0.2.3), | 259 <link doc="reference.xml" id="string_bytesfrom"><literal>bytesFrom</literal></link> |
260 (<link doc="changes.xml" id="njs0.2.3">0.2.3</link>), | |
246 <link doc="reference.xml" id="string_frombytes"><literal>fromBytes</literal></link>, | 261 <link doc="reference.xml" id="string_frombytes"><literal>fromBytes</literal></link>, |
247 <link doc="reference.xml" id="string_fromutf8"><literal>fromUTF8</literal></link>, | 262 <link doc="reference.xml" id="string_fromutf8"><literal>fromUTF8</literal></link>, |
248 <link doc="reference.xml" id="string_tobytes"><literal>toBytes</literal></link>, | 263 <link doc="reference.xml" id="string_tobytes"><literal>toBytes</literal></link>, |
249 <link doc="reference.xml" id="string_toutf8"><literal>toUTF8</literal></link> | 264 <link doc="reference.xml" id="string_toutf8"><literal>toUTF8</literal></link> |
250 </listitem> | 265 </listitem> |
283 (<link doc="changes.xml" id="njs0.3.7">0.3.7</link>) | 298 (<link doc="changes.xml" id="njs0.3.7">0.3.7</link>) |
284 </listitem> | 299 </listitem> |
285 | 300 |
286 <listitem> | 301 <listitem> |
287 ES8: | 302 ES8: |
288 <link doc="reference.xml" id="object_entries"><literal>entries</literal></link> | 303 <literal>entries</literal> |
289 (<link doc="changes.xml" id="njs0.2.7">0.2.7</link>), | 304 (<link doc="changes.xml" id="njs0.2.7">0.2.7</link>), |
290 <link doc="reference.xml" id="object_values"><literal>values</literal></link> | 305 <literal>values</literal> |
291 (<link doc="changes.xml" id="njs0.2.7">0.2.7</link>) | 306 (<link doc="changes.xml" id="njs0.2.7">0.2.7</link>) |
292 </listitem> | 307 </listitem> |
293 </list> | 308 </list> |
294 | 309 |
295 </listitem> | 310 </listitem> |
563 </list> | 578 </list> |
564 | 579 |
565 </listitem> | 580 </listitem> |
566 | 581 |
567 <listitem> | 582 <listitem> |
568 <link doc="reference.xml" id="core_json"><literal>JSON</literal></link> methods: | 583 <literal>JSON</literal> methods: |
569 <list type="bullet"> | 584 <list type="bullet"> |
570 | 585 |
571 <listitem> | 586 <listitem> |
572 ES5.1: | 587 ES5.1: |
573 <link doc="reference.xml" id="core_json_parse"><literal>parse</literal></link>, | 588 <literal>parse</literal> |
574 <link doc="reference.xml" id="core_json_stringify"><literal>stringify</literal></link> | 589 <literal>stringify</literal> |
575 </listitem> | 590 </listitem> |
576 </list> | 591 </list> |
577 | 592 |
578 </listitem> | 593 </listitem> |
579 | 594 |
580 <listitem> | 595 <listitem> |
581 ES5.1 <literal>arguments</literal> object (0.2.5) | 596 ES5.1 <literal>arguments</literal> object |
597 (<link doc="changes.xml" id="njs0.2.5">0.2.5</link>) | |
582 </listitem> | 598 </listitem> |
583 | 599 |
584 <listitem> | 600 <listitem> |
585 ES6 rest parameters syntax (without destructuring support) | 601 ES6 rest parameters syntax (without destructuring support) |
586 (<link doc="changes.xml" id="njs0.2.7">0.2.7</link>) | 602 (<link doc="changes.xml" id="njs0.2.7">0.2.7</link>) |
587 </listitem> | 603 </listitem> |
588 | 604 |
589 <listitem> | 605 <listitem> |
590 ES5.1 global functions: | 606 ES5.1 global functions: |
591 <link doc="reference.xml" id="decodeuri"><literal>decodeURI</literal></link>, | 607 <literal>decodeURI</literal>, |
592 <link doc="reference.xml" id="decodeuricomponent"><literal>decodeURIComponent</literal></link>, | 608 <literal>decodeURIComponent</literal>, |
593 <link doc="reference.xml" id="encodeuri"><literal>encodeURI</literal></link>, | 609 <literal>encodeURI</literal>, |
594 <link doc="reference.xml" id="encodeuricomponent"><literal>encodeURIComponent</literal></link>, | 610 <literal>encodeURIComponent</literal>, |
595 <literal>isFinite</literal>, | 611 <literal>isFinite</literal>, |
596 <literal>isNaN</literal>, | 612 <literal>isNaN</literal>, |
597 <literal>parseFloat</literal>, | 613 <literal>parseFloat</literal>, |
598 <literal>parseInt</literal> | 614 <literal>parseInt</literal> |
599 </listitem> | 615 </listitem> |
612 | 628 |
613 <listitem> | 629 <listitem> |
614 <link doc="reference.xml" id="cleartimeout"><literal>clearTimeout</literal></link> | 630 <link doc="reference.xml" id="cleartimeout"><literal>clearTimeout</literal></link> |
615 and | 631 and |
616 <link doc="reference.xml" id="settimeout"><literal>setTimeout</literal></link> | 632 <link doc="reference.xml" id="settimeout"><literal>setTimeout</literal></link> |
617 functions (0.2.0) | 633 functions |
634 (<link doc="changes.xml" id="njs0.2.0">0.2.0</link>) | |
618 </listitem> | 635 </listitem> |
619 | 636 |
620 <listitem> | 637 <listitem> |
621 <literal>File system</literal> methods: | 638 <literal>File system</literal> methods: |
622 <link doc="reference.xml" id="fs_accesssync"><literal>fs.accessSync</literal></link> | 639 <link doc="reference.xml" id="fs_accesssync"><literal>fs.accessSync</literal></link> |
644 <literal>fs.promises</literal> API (<link doc="changes.xml" id="njs0.3.9">0.3.9</link>), | 661 <literal>fs.promises</literal> API (<link doc="changes.xml" id="njs0.3.9">0.3.9</link>), |
645 asynchronous version of file system methods. | 662 asynchronous version of file system methods. |
646 </listitem> | 663 </listitem> |
647 | 664 |
648 <listitem> | 665 <listitem> |
649 <literal>Crypto</literal> methods (0.2.0): | 666 <literal>Crypto</literal> methods |
667 (<link doc="changes.xml" id="njs0.2.0">0.2.0</link>): | |
650 <link doc="reference.xml" id="crypto_createhash"><literal>crypto.createHash</literal></link>, | 668 <link doc="reference.xml" id="crypto_createhash"><literal>crypto.createHash</literal></link>, |
651 <link doc="reference.xml" id="crypto_createhmac"><literal>crypto.createHmac</literal></link> | 669 <link doc="reference.xml" id="crypto_createhmac"><literal>crypto.createHmac</literal></link> |
652 </listitem> | 670 </listitem> |
653 | 671 |
654 <listitem> | 672 <listitem> |