11cb0ef41Sopenharmony_ci'use strict'; 21cb0ef41Sopenharmony_ciconst common = require('../common'); 31cb0ef41Sopenharmony_ciconst { Worker } = require('worker_threads'); 41cb0ef41Sopenharmony_ci 51cb0ef41Sopenharmony_ciconst w = new Worker(` 61cb0ef41Sopenharmony_ciconst { createHook } = require('async_hooks'); 71cb0ef41Sopenharmony_ci 81cb0ef41Sopenharmony_cisetImmediate(async () => { 91cb0ef41Sopenharmony_ci createHook({ init() {} }).enable(); 101cb0ef41Sopenharmony_ci await 0; 111cb0ef41Sopenharmony_ci process.exit(); 121cb0ef41Sopenharmony_ci}); 131cb0ef41Sopenharmony_ci`, { eval: true }); 141cb0ef41Sopenharmony_ci 151cb0ef41Sopenharmony_ciw.on('exit', common.mustCall()); 16