(binding)
| 6 | module.exports = require('./common').runTest(binding => test(binding.movable_callbacks)); |
| 7 | |
| 8 | async function test (binding) { |
| 9 | await testUtil.runGCTests([ |
| 10 | 'External', |
| 11 | () => { |
| 12 | const fn = common.mustCall(() => { |
| 13 | // noop |
| 14 | }, 1); |
| 15 | binding.createExternal(fn); |
| 16 | }, |
| 17 | () => { |
| 18 | // noop, wait for gc |
| 19 | } |
| 20 | ]); |
| 21 | } |