diff --git a/lib/module.js b/lib/module.js index 3f42975a63..0d9f0932e5 100644 --- a/lib/module.js +++ b/lib/module.js @@ -1,11 +1,12 @@ 'use strict'; const NativeModule = require('native_module'); -const util = NativeModule.require('util'); +const util = require('util'); const runInThisContext = require('vm').runInThisContext; const runInNewContext = require('vm').runInNewContext; const assert = require('assert').ok; -const fs = NativeModule.require('fs'); +const fs = require('fs'); +const path = require('path'); // If obj.hasOwnProperty has been overridden, then calling @@ -41,9 +42,6 @@ Module.globalPaths = []; Module.wrapper = NativeModule.wrapper; Module.wrap = NativeModule.wrap; - -const path = NativeModule.require('path'); - Module._debug = util.debuglog('module');