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

Commit

Permalink
Remove __wrap__s
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Jan 31, 2010
1 parent 9f5643f commit fc025f8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/node.js
@@ -1,4 +1,4 @@
__wrap__ = function (process) {
(function (process) {

process.global.process = process;
process.global.global = process.global;
Expand Down Expand Up @@ -923,9 +923,9 @@ Module.prototype.loadScript = function (filename, loadPromise) {
require.async = requireAsync;
require.main = process.mainModule;
// create wrapper function
var wrapper = "var __wrap__ = function (exports, require, module, __filename, __dirname) { "
var wrapper = "(function (exports, require, module, __filename, __dirname) { "
+ content
+ "\n}; __wrap__;";
+ "\n});";

try {
var compiledWrapper = process.compile(wrapper, filename);
Expand Down Expand Up @@ -990,5 +990,4 @@ process.loop();

process.emit("exit");

};
__wrap__;
})

0 comments on commit fc025f8

Please sign in to comment.