env: fix environment.
This commit is contained in:
parent
19f236f740
commit
7ab6818210
@ -302,7 +302,7 @@ Environment.prototype.cache = function cache() {
|
|||||||
* Cache all necessary modules.
|
* Cache all necessary modules.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Evironment.prototype.require = function _require(name, path) {
|
Environment.prototype.require = function _require(name, path) {
|
||||||
var cache;
|
var cache;
|
||||||
this.__defineGetter__(name, function() {
|
this.__defineGetter__(name, function() {
|
||||||
if (!cache)
|
if (!cache)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user