summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2009-09-28 22:16:43 +0200
committerRyan Dahl <ry@tinyclouds.org>2009-09-28 22:16:43 +0200
commit4ba5b7e24b86cb533c61320656f94f0d72359d52 (patch)
tree08b58bbff511aeab145d57d3e9de56f8e078f949
parente972add0ea6cc27848decff2c761452d75e42d0b (diff)
downloadandroid-node-v8-4ba5b7e24b86cb533c61320656f94f0d72359d52.tar.gz
android-node-v8-4ba5b7e24b86cb533c61320656f94f0d72359d52.tar.bz2
android-node-v8-4ba5b7e24b86cb533c61320656f94f0d72359d52.zip
Add doc for node.compile()
-rw-r--r--doc/api.html11
-rw-r--r--doc/api.txt4
-rw-r--r--doc/api.xml11
-rw-r--r--doc/node.19
4 files changed, 34 insertions, 1 deletions
diff --git a/doc/api.html b/doc/api.html
index c9c0a45ef3..77c896791f 100644
--- a/doc/api.html
+++ b/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>
diff --git a/doc/api.txt b/doc/api.txt
index fa3416366b..2b71cf3a0c 100644
--- a/doc/api.txt
+++ b/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.
diff --git a/doc/api.xml b/doc/api.xml
index 3d1bcfd7cb..ac1fbc26e9 100644
--- a/doc/api.xml
+++ b/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>
diff --git a/doc/node.1 b/doc/node.1
index c962b89d12..5edc3a32f3 100644
--- a/doc/node.1
+++ b/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\.