From a8c0211e73371a6783e5fccc90b494c6cdc8b88c Mon Sep 17 00:00:00 2001
From: Ryan Dahl
Date: Tue, 29 Sep 2009 19:28:54 +0200
Subject: [PATCH] Bugfix: require() and include() should work in callbacks.
Removing requireAsync and includeAsync from global scope for now as a
temporary fix. Reported by Yuffster.
---
doc/api.html | 3 +-
doc/api.txt | 2 -
doc/api.xml | 1 -
doc/node.1 | 2 -
src/node.js | 55 ++++++++++++++--------------
test/mjsunit/test-delayed-require.js | 11 ++++++
6 files changed, 39 insertions(+), 35 deletions(-)
create mode 100644 test/mjsunit/test-delayed-require.js
diff --git a/doc/api.html b/doc/api.html
index 10de5657bdb..da792d2597f 100644
--- a/doc/api.html
+++ b/doc/api.html
@@ -535,7 +535,6 @@ variable (which should be a list of paths, colon separated).
Node comes with several libraries which are installed when "make install"
is run. These are currently undocumented, but do look them up in your
system.
-(Functions require_async() and include_async() also exist.)
Timers
-
@@ -2030,7 +2029,7 @@ init (Handle<Object> target)