From c79fd0e167f55e8274ad8729a087076cf8903b53 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Thu, 6 Dec 2012 21:58:29 +0100 Subject: [PATCH] doc: remove broken require.extensions example Fixes #4384. --- doc/api/globals.markdown | 8 -------- 1 file changed, 8 deletions(-) diff --git a/doc/api/globals.markdown b/doc/api/globals.markdown index 0ca2b0db9d..456289cbb9 100644 --- a/doc/api/globals.markdown +++ b/doc/api/globals.markdown @@ -71,14 +71,6 @@ Process files with the extension `.sjs` as `.js`: require.extensions['.sjs'] = require.extensions['.js']; -Write your own extension handler: - - require.extensions['.sjs'] = function(module, filename) { - var content = fs.readFileSync(filename, 'utf8'); - // Parse the file content and give to module.exports - module.exports = content; - }; - ## __filename