projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
276245d
)
doc: remove broken require.extensions example
author
Ben Noordhuis
<info@bnoordhuis.nl>
Thu, 6 Dec 2012 20:58:29 +0000
(21:58 +0100)
committer
Ben Noordhuis
<info@bnoordhuis.nl>
Thu, 6 Dec 2012 20:58:36 +0000
(21:58 +0100)
Fixes #4384.
doc/api/globals.markdown
patch
|
blob
|
history
diff --git
a/doc/api/globals.markdown
b/doc/api/globals.markdown
index 0ca2b0db9d9ac0003dd35fd2a968c3e4c77e865c..456289cbb9f37a4928b2fb97275f8433b101498e 100644
(file)
--- 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
<!-- type=var -->