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

Commit

Permalink
Fix #11972
Browse files Browse the repository at this point in the history
  • Loading branch information
pixiuPL committed Jan 8, 2018
2 parents ec06739 + 9fc2852 commit a22f618
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/bootstrap.js
Expand Up @@ -268,17 +268,7 @@ phantom.callback = function (callback) {
Module.prototype._getRequire = function () {
var self = this;

function require(request) {
return self.require(request);
}
require.cache = cache;
require.extensions = extensions;
require.paths = paths;
require.stub = function (request, exports) {
self.stubs[request] = {
exports: exports
};
};
};

return require;
};
Expand Down

0 comments on commit a22f618

Please sign in to comment.