summaryrefslogtreecommitdiff
path: root/test/fixtures
diff options
context:
space:
mode:
authorBenjamin <ben@npmjs.com>2018-11-03 15:42:13 -0700
committerRich Trott <rtrott@gmail.com>2018-11-03 18:35:04 -0700
commit616fac9169840c76512920e66b6428971df3d289 (patch)
tree7da4cda98f2495077348f118f0ba917d58162bb5 /test/fixtures
parent2ea70eae732682851ae6f9403daad7a966c11f5f (diff)
downloadandroid-node-v8-616fac9169840c76512920e66b6428971df3d289.tar.gz
android-node-v8-616fac9169840c76512920e66b6428971df3d289.tar.bz2
android-node-v8-616fac9169840c76512920e66b6428971df3d289.zip
lib: make coverage work for Node.js
PR-URL: https://github.com/nodejs/node/pull/23941 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yang Guo <yangguo@chromium.org>
Diffstat (limited to 'test/fixtures')
-rw-r--r--test/fixtures/v8-coverage/async-hooks.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/fixtures/v8-coverage/async-hooks.js b/test/fixtures/v8-coverage/async-hooks.js
new file mode 100644
index 0000000000..855f41ed3b
--- /dev/null
+++ b/test/fixtures/v8-coverage/async-hooks.js
@@ -0,0 +1,11 @@
+const async_hooks = require('async_hooks');
+const common = require('../../common');
+
+const hook = async_hooks.createHook({
+ init: common.mustNotCall(),
+ before: common.mustNotCall(),
+ after: common.mustNotCall(),
+ destroy: common.mustNotCall()
+});
+
+hook.enable();