node/test/addons
Anna Henningsen 9c7d19104d 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>
2018-11-03 23:31:03 -07:00
..
async-hello-world test: remove usage of deprecated V8 APIs in addons 2018-09-07 15:47:48 +02:00
async-hooks-id test: properly tag anonymous namespaces 2018-02-08 18:43:36 -05:00
async-hooks-promise test: remove custom message from assertion 2017-11-07 09:50:54 +00:00
async-resource src: make `AsyncResource` destructor virtual 2018-05-14 18:18:16 +02:00
at-exit test,doc: make module name match gyp target name 2017-09-10 00:15:49 +03:00
buffer-free-callback test: remove usage of deprecated V8 APIs in addons 2018-09-07 15:47:48 +02:00
callback-scope test: fix flaky addons/callback-scope/test-resolve-async 2018-09-07 09:52:18 +02:00
dlopen-ping-pong test: fix warning in dlopen-ping-pong/binding.cc 2018-04-14 13:22:31 +02:00
errno-exception test,doc: make module name match gyp target name 2017-09-10 00:15:49 +03:00
heap-profiler src: replace deprecated uses of FunctionTemplate::GetFunction 2018-09-24 05:44:28 +02:00
hello-world src: add context-aware init macro and doc 2018-07-03 18:34:50 -04:00
hello-world-esm lint: move eslint to new plugin system 2018-02-20 13:13:22 -06:00
hello-world-function-export test,doc: make module name match gyp target name 2017-09-10 00:15:49 +03:00
load-long-path test: inline common module boolean 2018-10-14 22:10:40 +02:00
make-callback test: flip assertion arguments for make-callback/test.js 2018-10-13 19:34:40 -07:00
make-callback-domain-warning test: fix deprecation warning in binding.cc 2018-02-22 06:25:58 +01:00
make-callback-recurse test: make crashOnUnhandleRejection opt-out 2018-07-19 08:47:28 +02:00
new-target src: replace deprecated uses of FunctionTemplate::GetFunction 2018-09-24 05:44:28 +02:00
node-module-version n-api: use module name macro 2017-10-15 16:00:29 -07:00
non-node-context buffer: throw exception when creating from non-Node.js Context 2018-11-03 23:31:03 -07:00
not-a-binding test: add check on an addon that does not register 2017-08-01 17:25:51 +02:00
null-buffer-neuter test,doc: make module name match gyp target name 2017-09-10 00:15:49 +03:00
openssl-binding src: replace deprecated uses of FunctionTemplate::GetFunction 2018-09-24 05:44:28 +02:00
openssl-client-cert-engine build: make gyp user defined variables lowercase 2018-02-01 09:51:16 +01:00
parse-encoding test,doc: make module name match gyp target name 2017-09-10 00:15:49 +03:00
repl-domain-abort test: fix warnings in addon tests 2018-02-16 15:47:07 -08:00
stringbytes-external-exceed-max buffer: move process.binding('buffer') to internalBinding 2018-10-15 19:01:20 +08:00
symlinked-module test: specify 'dir' for directory symlinks 2018-03-01 15:47:29 -08:00
uv-handle-leak worker,src: display remaining handles if `uv_loop_close` fails 2018-06-13 12:23:36 +02:00
zlib-binding src: replace deprecated uses of FunctionTemplate::GetFunction 2018-09-24 05:44:28 +02:00
.gitignore Revert "build,test: make building addon tests less fragile" 2018-01-25 08:18:24 +11:00
testcfg.py addons: build and test examples 2014-01-22 00:39:13 +04:00