0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test/addons
Ben Noordhuis 921d2b080e src: make cross-context MakeCallback() calls work
Check that invoking a callback on a receiver from a different context
works.

It ran afoul of an `env->context() == isolate->GetCurrentContext()`
assertion so retrieve the environment from the callback context and
the context to enter from the environment's context() method.

We could also have retrieved the environment from the receiver's context
and that would have made little practical difference.  It just seemed
more correct to get it from the callback context because that is the
actual execution context.

PR-URL: https://github.com/nodejs/node/pull/9221
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2016-10-25 13:18:01 +02:00
..
async-hello-world test: enable addons test to pass with debug build 2016-10-06 10:27:30 -07:00
at-exit test: rename target to exports for consistency 2016-10-19 19:57:02 +02:00
buffer-free-callback test: rename target to exports for consistency 2016-10-19 19:57:02 +02:00
heap-profiler test: enable addons test to pass with debug build 2016-10-06 10:27:30 -07:00
hello-world test: rename target to exports for consistency 2016-10-19 19:57:02 +02:00
hello-world-function-export test: enable addons test to pass with debug build 2016-10-06 10:27:30 -07:00
load-long-path test: rename target to exports for consistency 2016-10-19 19:57:02 +02:00
make-callback src: make cross-context MakeCallback() calls work 2016-10-25 13:18:01 +02:00
make-callback-recurse test: rename target to exports for consistency 2016-10-19 19:57:02 +02:00
node-module-version test: enable node-module-version/test.js with debug 2016-10-17 09:53:28 +02:00
null-buffer-neuter test: rename target to exports for consistency 2016-10-19 19:57:02 +02:00
openssl-binding test: enable addons test to pass with debug build 2016-10-06 10:27:30 -07:00
parse-encoding test: rename target to exports for consistency 2016-10-19 19:57:02 +02:00
repl-domain-abort test: rename target to exports for consistency 2016-10-19 19:57:02 +02:00
stringbytes-external-exceed-max test: rename target to exports for consistency 2016-10-19 19:57:02 +02:00
symlinked-module test: rename target to exports for consistency 2016-10-19 19:57:02 +02:00
zlib-binding test: enable addons test to pass with debug build 2016-10-06 10:27:30 -07:00
.gitignore build: make ci test addons in test/addons 2015-08-25 12:03:57 +02:00
testcfg.py addons: build and test examples 2014-01-22 00:39:13 +04:00