Browse Source

Add doc for node.compile()

v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
4ba5b7e24b
  1. 11
      doc/api.html
  2. 4
      doc/api.txt
  3. 11
      doc/api.xml
  4. 9
      doc/node.1

11
doc/api.html

@ -73,6 +73,15 @@ Returns the current working directory of the process.
</p>
</dd>
<dt class="hdlist1">
<tt>node.compile(source, scriptOrigin)</tt>
</dt>
<dd>
<p>
Just like <tt>eval()</tt> except that you can specify a <tt>scriptOrigin</tt> for better
error reporting.
</p>
</dd>
<dt class="hdlist1">
<tt>__filename</tt>
</dt>
<dd>
@ -2006,7 +2015,7 @@ init (Handle&lt;Object&gt; target)
<div id="footer">
<div id="footer-text">
Version 0.1.12<br />
Last updated 2009-09-28 19:43:15 CEST
Last updated 2009-09-28 21:50:11 CEST
</div>
</div>
</body>

4
doc/api.txt

@ -53,6 +53,10 @@ These objects are available to all programs.
+node.cwd()+::
Returns the current working directory of the process.
+node.compile(source, scriptOrigin)+::
Just like +eval()+ except that you can specify a +scriptOrigin+ for better
error reporting.
+__filename+ ::
The filename of the script being executed.

11
doc/api.xml

@ -49,6 +49,17 @@ Returns the current working directory of the process.
</varlistentry>
<varlistentry>
<term>
<literal>node.compile(source, scriptOrigin)</literal>
</term>
<listitem>
<simpara>
Just like <literal>eval()</literal> except that you can specify a <literal>scriptOrigin</literal> for better
error reporting.
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term>
<literal>__filename</literal>
</term>
<listitem>

9
doc/node.1

@ -50,6 +50,15 @@ node\.cwd()
Returns the current working directory of the process\.
.RE
.PP
node\.compile(source, scriptOrigin)
.RS 4
Just like
eval()
except that you can specify a
scriptOrigin
for better error reporting\.
.RE
.PP
__filename
.RS 4
The filename of the script being executed\.

Loading…
Cancel
Save