Home
last modified time | relevance | path

Searched refs:hook_result (Results 1 – 4 of 4) sorted by relevance

/third_party/node/test/node-api/test_make_callback/
Dtest-async-hooks.js10 const hook_result = { variable
20 hook_result.id = id;
21 hook_result.init_called = true;
25 if (id === hook_result.id) hook_result.before_called = true;
28 if (id === hook_result.id) hook_result.after_called = true;
31 if (id === hook_result.id) hook_result.destroy_called = true;
47 assert.strictEqual(hook_result.init_called, true);
48 assert.strictEqual(hook_result.before_called, true);
49 assert.strictEqual(hook_result.after_called, true);
51 assert.strictEqual(hook_result.destroy_called, true);
/third_party/node/test/node-api/test_async_context/
Dtest.js13 const hook_result = { variable
23 hook_result.id = id;
24 hook_result.init_called = true;
25 hook_result.resource = resource;
29 if (id === hook_result.id) hook_result.destroy_called = true;
41 assert.strictEqual(hook_result.destroy_called, false);
44 assert.strictEqual(hook_result.destroy_called, false);
46 hook_result.resource,
52 assert.strictEqual(hook_result.destroy_called, false);
54 hook_result.resource,
[all …]
Dtest-gcable-callback.js16 const hook_result = { variable
25 hook_result.id = id;
26 hook_result.init_called = true;
30 if (id === hook_result.id) hook_result.destroy_called = true;
48 assert.strictEqual(hook_result.destroy_called, false);
50 assert.strictEqual(hook_result.destroy_called, false);
62 assert.strictEqual(hook_result.destroy_called, true);
Dtest-gcable.js12 const hook_result = { variable
21 hook_result.id = id;
22 hook_result.init_called = true;
26 if (id === hook_result.id) hook_result.destroy_called = true;
41 assert.strictEqual(hook_result.destroy_called, false);
43 assert.strictEqual(hook_result.destroy_called, true);