Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
repl: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Jan 12, 2013
1 parent 9bce5e8 commit bac537b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
},
Expand Down

0 comments on commit bac537b

Please sign in to comment.