Add doc for node.compile()
authorRyan Dahl <ry@tinyclouds.org>
Mon, 28 Sep 2009 20:16:43 +0000 (22:16 +0200)
committerRyan Dahl <ry@tinyclouds.org>
Mon, 28 Sep 2009 20:16:43 +0000 (22:16 +0200)
doc/api.html
doc/api.txt
doc/api.xml
doc/node.1

index c9c0a45..77c8967 100644 (file)
@@ -73,6 +73,15 @@ Returns the current working directory of the process.
 </p>\r
 </dd>\r
 <dt class="hdlist1">\r
+<tt>node.compile(source, scriptOrigin)</tt>\r
+</dt>\r
+<dd>\r
+<p>\r
+Just like <tt>eval()</tt> except that you can specify a <tt>scriptOrigin</tt> for better\r
+error reporting.\r
+</p>\r
+</dd>\r
+<dt class="hdlist1">\r
 <tt>__filename</tt> \r
 </dt>\r
 <dd>\r
@@ -2006,7 +2015,7 @@ init (Handle&lt;Object&gt; target)
 <div id="footer">\r
 <div id="footer-text">\r
 Version 0.1.12<br />\r
-Last updated 2009-09-28 19:43:15 CEST\r
+Last updated 2009-09-28 21:50:11 CEST\r
 </div>\r
 </div>\r
 </body>\r
index fa34163..2b71cf3 100644 (file)
@@ -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.
 
index 3d1bcfd..ac1fbc2 100644 (file)
@@ -49,6 +49,17 @@ Returns the current working directory of the process.
 </varlistentry>\r
 <varlistentry>\r
 <term>\r
+<literal>node.compile(source, scriptOrigin)</literal>\r
+</term>\r
+<listitem>\r
+<simpara>\r
+Just like <literal>eval()</literal> except that you can specify a <literal>scriptOrigin</literal> for better\r
+error reporting.\r
+</simpara>\r
+</listitem>\r
+</varlistentry>\r
+<varlistentry>\r
+<term>\r
 <literal>__filename</literal> \r
 </term>\r
 <listitem>\r
index c962b89..5edc3a3 100644 (file)
@@ -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\.