11cb0ef41Sopenharmony_ci'use strict'; 21cb0ef41Sopenharmony_ciconst common = require('../common'); 31cb0ef41Sopenharmony_ciconst assert = require('assert'); 41cb0ef41Sopenharmony_ci 51cb0ef41Sopenharmony_ciconst timer = setTimeout(common.mustNotCall(), 10); 61cb0ef41Sopenharmony_ciconst interval = setInterval(common.mustNotCall(), 10); 71cb0ef41Sopenharmony_ciconst immediate = setImmediate(common.mustNotCall()); 81cb0ef41Sopenharmony_ci 91cb0ef41Sopenharmony_citimer[Symbol.dispose](); 101cb0ef41Sopenharmony_ciinterval[Symbol.dispose](); 111cb0ef41Sopenharmony_ciimmediate[Symbol.dispose](); 121cb0ef41Sopenharmony_ci 131cb0ef41Sopenharmony_ci 141cb0ef41Sopenharmony_ciprocess.on('exit', () => { 151cb0ef41Sopenharmony_ci assert.strictEqual(timer._destroyed, true); 161cb0ef41Sopenharmony_ci assert.strictEqual(interval._destroyed, true); 171cb0ef41Sopenharmony_ci assert.strictEqual(immediate._destroyed, true); 181cb0ef41Sopenharmony_ci}); 19