MCPcopy Index your code
hub / github.com/prototypejs/prototype / require

Function require

test/unit/static/js/mocha.js:5–14  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

3// CommonJS require()
4
5function require(p){
6 var path = require.resolve(p)
7 , mod = require.modules[path];
8 if (!mod) throw new Error('failed to require "' + p + '"');
9 if (!mod.exports) {
10 mod.exports = {};
11 mod.call(mod.exports, mod, mod.exports, require.relative(path));
12 }
13 return mod.exports;
14 }
15
16require.modules = {};
17

Callers 3

mocha.jsFile · 0.85
HTMLCovFunction · 0.85
mocha-phantomjs.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected