No subject

Thu Dec 10 21:37:41 PST 2009

natively or via pure ES.</div>
<div>And it is possible, to configure a new context which will deny access =
to the native JSON module to code and imported modules within this context =
- if the developer desires.</div><div><br></div><div>Also, a general point.=
 There has been discussion re ArrayBuffers. Would &#39;native modules&#39; =
be a way to present this functionality to ECMAScript. As an alternative to =
putting them in the global object/namespace.</div>
<div><br></div><div>import ModArrayBuffer; // imports ArrayBuffer, Int32Arr=
ay, Int16Array etc</div><div><br></div><div><span style=3D"border-collapse:=
 separate; font-size: small; "><span style=3D"border-collapse: collapse; ">=
buf =3D new ArrayBuffer(100); =A0// create 100-byte ArrayBuffer=A0</div><di=
v>var ints =3D new Int32Array(buf); =A0// view that buffer as 32-bit intege=
rs</div><div>var fourShorts =3D new Int16Array(buf, 20, 4); =A0// Starting =
at byte 20 in the buffer, create a 16-bit=A0</div>
<div><br></div><div>// end</div></span></span></div></span></div></div></sp=
an><div class=3D"gmail_quote"><br></div>


More information about the es-discuss mailing list