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:
4fdb8ac
)
doc: Fix require.extensions documentation
author
isaacs
<i@izs.me>
Tue, 30 Apr 2013 14:40:43 +0000
(07:40 -0700)
committer
isaacs
<i@izs.me>
Tue, 30 Apr 2013 14:40:43 +0000
(07:40 -0700)
1. The stability index must come first, or it messes up the markdown
2. require.extensions is an Object, not an Array.
Close #5387
doc/api/globals.markdown
patch
|
blob
|
history
diff --git
a/doc/api/globals.markdown
b/doc/api/globals.markdown
index
c0ff6b5
..
bc2996b
100644
(file)
--- a/
doc/api/globals.markdown
+++ b/
doc/api/globals.markdown
@@
-63,10
+63,10
@@
value from this object, the next `require` will reload the module.
### require.extensions
-* {Array}
-
Stability: 0 - Deprecated
+* {Object}
+
Instruct `require` on how to handle certain file extensions.
Process files with the extension `.sjs` as `.js`: