From 4ba5b7e24b86cb533c61320656f94f0d72359d52 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 28 Sep 2009 22:16:43 +0200 Subject: [PATCH] Add doc for node.compile() --- doc/api.html | 11 ++++++++++- doc/api.txt | 4 ++++ doc/api.xml | 11 +++++++++++ doc/node.1 | 9 +++++++++ 4 files changed, 34 insertions(+), 1 deletion(-) 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\. -- 2.7.4