Created
February 3, 2017 16:26
-
-
Save ghaiklor/5adb6aababd8d2d06758ca4ac923a688 to your computer and use it in GitHub Desktop.
Module.prototype.require() sources
This file contains hidden or 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
Module.prototype.require = function(path) { | |
assert(path, 'missing path'); | |
assert(typeof path === 'string', 'path must be a string'); | |
return Module._load(path, this, /* isMain */ false); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment