Re: Sandbox and modules
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Sandbox and modules
- From: Tomas <tomas@...>
- Date: 2006年7月17日 10:31:20 -0300 (BRT)
You are reusing the functions of the module but changing its
environment?
Yes, exactly.
Why don't you force a new call to require() to assure the new
environment of the functions? I think you could achieve that by caching
the module open function. A new call to require"module" would invoke the
cached function and a new environment would be assigned to the functions.
Tomas