Permalink
Browse files

doc: remove broken require.extensions example

Fixes #4384.
  • Loading branch information...
1 parent 276245d commit c79fd0e167f55e8274ad8729a087076cf8903b53 @bnoordhuis bnoordhuis committed Dec 6, 2012
Showing with 0 additions and 8 deletions.
  1. +0 −8 doc/api/globals.markdown
View
@@ -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
<!-- type=var -->

0 comments on commit c79fd0e

Please sign in to comment.