diff --git a/doc/api.html b/doc/api.html index c9c0a45ef3c..77c896791f9 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 fa3416366bd..2b71cf3a0cf 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 3d1bcfd7cb6..ac1fbc26e9f 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 c962b89d127..5edc3a32f3b 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\.