You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jackson Tian
293fd04535
buffer: make byteLength work with ArrayBuffer & DataView
Convert anything to string, but Buffer, TypedArray and ArrayBuffer
```
var uint8 = new Uint8Array([0xf0, 0x9f, 0x90]);
Buffer.byteLength(uint8); // should be 3, but returns 11
Buffer.byteLength(uint8.buffer); // should be 3, but return 20
```
PR-URL: https://github.com/nodejs/node/pull/5255
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
9 years ago
..
_toc.markdown
doc: add a cli options doc page
9 years ago
addons.markdown
doc: fix typo in api/addons
9 years ago
all.markdown
deps: update v8 to 4.4.63.9
10 years ago
assert.markdown
doc: mention prototype check in deepStrictEqual()
9 years ago
buffer.markdown
buffer: make byteLength work with ArrayBuffer & DataView
9 years ago
child_process.markdown
doc: Add note about use of JSON.stringify()
9 years ago
cli.markdown
process: add 'warning' event and process.emitWarning()
9 years ago
cluster.markdown
doc: add missing property in cluster example
9 years ago
console.markdown
console: check that stderr is writable
9 years ago
crypto.markdown
crypto: fail early when loading crypto without openssl
9 years ago
debugger.markdown
doc: replace function expressions with arrows
9 years ago
dgram.markdown
doc: fix typo in api/dgram
9 years ago
dns.markdown
doc: fix dns.resolveCname description typo
9 years ago
documentation.markdown
doc: add info to docs on how to submit docs patch
9 years ago
domain.markdown
doc: fix type references for link gen, link css
9 years ago
errors.markdown
doc: fix markdown links
9 years ago
events.markdown
doc: use consistent event name parameter
9 years ago
fs.markdown
fs: Buffer and encoding enhancements to fs API
9 years ago
globals.markdown
doc: proper markdown escaping -> \_\_, \*, \_
9 years ago
http.markdown
doc: fix markdown links
9 years ago
https.markdown
doc: minor improvement to HTTPS doc
9 years ago
index.markdown
Remove util.print from docs
14 years ago
modules.markdown
doc: explain error message on missing main file
9 years ago
net.markdown
net: emit host in lookup event
9 years ago
os.markdown
doc: minor improvement in OS docs
9 years ago
path.markdown
doc: explain path.format expected properties
9 years ago
process.markdown
process: add 'warning' event and process.emitWarning()
9 years ago
punycode.markdown
doc: fenced all code blocks, typo fixes
9 years ago
querystring.markdown
doc: fix multiline return comments in querystring
9 years ago
readline.markdown
doc: don't use "interface" as a variable name
9 years ago
repl.markdown
repl: Assignment of _ allowed with warning
9 years ago
stream.markdown
lib: reduce usage of `self = this`
9 years ago
string_decoder.markdown
doc: fenced all code blocks, typo fixes
9 years ago
synopsis.markdown
doc: harmonize $ node command line notation
9 years ago
timers.markdown
doc: grammar, clarity and links in timers doc
9 years ago
tls.markdown
doc: align doc/api/tls.markdown with style guide
9 years ago
tty.markdown
doc: fenced all code blocks, typo fixes
9 years ago
url.markdown
doc: fenced all code blocks, typo fixes
9 years ago
util.markdown
doc: document deprecation of util._extend
9 years ago
v8.markdown
doc: update V8 URL
9 years ago
vm.markdown
vm: fix `produceCachedData`
9 years ago
zlib.markdown
doc: clarify type of first argument in zlib
9 years ago