Mercurial > hg > nginx-site
comparison xml/en/docs/njs_about.xml @ 2004:d1a1253a570e
Documented Object methods, exponential and hex literals in njs.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Tue, 27 Jun 2017 16:38:01 +0300 |
parents | 182bbf9034c4 |
children | af51ec6b5489 |
comparison
equal
deleted
inserted
replaced
2003:be779702663e | 2004:d1a1253a570e |
---|---|
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="9"> | 12 rev="10"> |
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 |
88 </list> | 88 </list> |
89 | 89 |
90 </listitem> | 90 </listitem> |
91 | 91 |
92 <listitem> | 92 <listitem> |
93 <literal>Object</literal>: | 93 <literal>Object</literal> methods: |
94 rudimentary <literal>Object.create()</literal> support without properties list | 94 <list type="bullet"> |
95 <listitem> | |
96 ES5.1: | |
97 <literal>create</literal> (support without properties list), | |
98 <literal>keys</literal>, | |
99 <literal>defineProperty</literal>, | |
100 <literal>defineProperties</literal>, | |
101 <literal>getOwnPropertyDescriptor</literal>, | |
102 <literal>getPrototypeOf</literal>, | |
103 <literal>hasOwnProperty</literal>, | |
104 <literal>isPrototypeOf</literal>, | |
105 <literal>preventExtensions</literal>, | |
106 <literal>isExtensible</literal>, | |
107 <literal>freeze</literal>, | |
108 <literal>isFrozen</literal>, | |
109 <literal>seal</literal>, | |
110 <literal>isSealed</literal> | |
111 </listitem> | |
112 </list> | |
113 | |
95 </listitem> | 114 </listitem> |
96 | 115 |
97 <listitem> | 116 <listitem> |
98 <literal>Array</literal> methods: | 117 <literal>Array</literal> methods: |
99 <list type="bullet"> | 118 <list type="bullet"> |
184 <literal>setImmediate</literal> functions | 203 <literal>setImmediate</literal> functions |
185 </listitem> | 204 </listitem> |
186 | 205 |
187 <listitem> | 206 <listitem> |
188 non-integer fractions (<literal>.235</literal>), | 207 non-integer fractions (<literal>.235</literal>), |
189 exponential (<literal>3.35e10</literal>), | |
190 binary (<literal>0b0101</literal>), | 208 binary (<literal>0b0101</literal>), |
191 octal (<literal>0o77</literal>), | 209 octal (<literal>0o77</literal>) literals |
192 hexadecimal (<literal>0x1123</literal>) literals | |
193 </listitem> | 210 </listitem> |
194 | 211 |
195 </list> | 212 </list> |
196 </para> | 213 </para> |
197 | 214 |