Created
March 1, 2012 01:21
-
-
Save sebmarkbage/1946430 to your computer and use it in GitHub Desktop.
require
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function require(module){ | |
if (module.cached) return module.cached; | |
module(module.cached = {}); | |
return module.cached; | |
}; | |
function MODULE1(exports){ | |
}; | |
function MODULE2(exports){ | |
var n = require(MODULE1); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment