summaryrefslogtreecommitdiff
path: root/doc/node.1
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2018-10-28 15:59:20 +0100
committerRich Trott <rtrott@gmail.com>2018-11-03 23:31:03 -0700
commit9c7d19104d1f03f70658a6834a7d0baac7d38724 (patch)
tree697662a674e093029e0b0681a80a2548dbee1d6e /doc/node.1
parentd8fb81fab3042b0229e11e82f88ed062b171036a (diff)
downloadandroid-node-v8-9c7d19104d1f03f70658a6834a7d0baac7d38724.tar.gz
android-node-v8-9c7d19104d1f03f70658a6834a7d0baac7d38724.tar.bz2
android-node-v8-9c7d19104d1f03f70658a6834a7d0baac7d38724.zip
buffer: throw exception when creating from non-Node.js Context
Throw an exception instead of crashing when attempting to create `Buffer` objects from a Context that is not associated with a Node.js `Environment`. Possible alternatives for the future might be just returning a plain `Uint8Array`, or working on providing `Buffer` for all `Context`s. PR-URL: https://github.com/nodejs/node/pull/23938 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Diffstat (limited to 'doc/node.1')
0 files changed, 0 insertions, 0 deletions