From: Ryan Dahl Date: Mon, 28 Sep 2009 20:16:43 +0000 (+0200) Subject: Add doc for node.compile() X-Git-Tag: v0.1.13~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4ba5b7e24b86cb533c61320656f94f0d72359d52;p=platform%2Fupstream%2Fnodejs.git Add doc for node.compile() --- diff --git a/doc/api.html b/doc/api.html index c9c0a45..77c8967 100644 --- a/doc/api.html +++ b/doc/api.html @@ -73,6 +73,15 @@ 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
@@ -2006,7 +2015,7 @@ init (Handle<Object> target) diff --git a/doc/api.txt b/doc/api.txt index fa34163..2b71cf3 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 3d1bcfd..ac1fbc2 100644 --- a/doc/api.xml +++ b/doc/api.xml @@ -49,6 +49,17 @@ 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 diff --git a/doc/node.1 b/doc/node.1 index c962b89..5edc3a3 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\.