repl: fix lint

pull/24504/head
Nathan Rajlich 2013-01-12 12:14:39 -08:00
parent 9bce5e8f3e
commit bac537b186
1 changed files with 3 additions and 3 deletions

View File

@ -329,15 +329,15 @@ REPLServer.prototype.createContext = function() {
// make built-in modules available directly
// (loaded lazily)
exports._builtinLibs.forEach(function(name){
exports._builtinLibs.forEach(function(name) {
Object.defineProperty(context, name, {
get: function(){
get: function() {
var lib = require(name);
context._ = context[name] = lib;
return lib;
},
// allow the creation of other globals with this name
set: function(val){
set: function(val) {
delete context[name];
context[name] = val;
},