diff options
author | Sakthipriyan Vairamani <thechargingvolcano@gmail.com> | 2015-09-17 04:43:39 +0530 |
---|---|---|
committer | Sakthipriyan Vairamani <thechargingvolcano@gmail.com> | 2015-10-06 18:56:20 +0530 |
commit | 6ad458b752e2c2818244714e499e560f6e668c87 (patch) | |
tree | 78780c602184618b69fafcf0b1e0981a42257028 /test/sequential/test-module-loading.js | |
parent | 88533881dd296236a44ad36aa7afb8336298540f (diff) | |
download | android-node-v8-6ad458b752e2c2818244714e499e560f6e668c87.tar.gz android-node-v8-6ad458b752e2c2818244714e499e560f6e668c87.tar.bz2 android-node-v8-6ad458b752e2c2818244714e499e560f6e668c87.zip |
module: remove unnecessary property and method
`require.paths` property and `require.registerExtension` function have
been throwing errors when used. They both are like this for years now.
This patch removes them from the system.
PR-URL: https://github.com/nodejs/node/pull/2922
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'test/sequential/test-module-loading.js')
-rw-r--r-- | test/sequential/test-module-loading.js | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/test/sequential/test-module-loading.js b/test/sequential/test-module-loading.js index 94aa36240b..d53de512f2 100644 --- a/test/sequential/test-module-loading.js +++ b/test/sequential/test-module-loading.js @@ -127,10 +127,6 @@ assert.equal(require('../fixtures/registerExt2').custom, 'passed'); assert.equal(require('../fixtures/foo').foo, 'ok', 'require module with no extension'); -assert.throws(function() { - require.paths; -}, /removed/, 'Accessing require.paths should throw.'); - // Should not attempt to load a directory try { require('../fixtures/empty'); |