11cb0ef41Sopenharmony_ci'use strict'; 21cb0ef41Sopenharmony_ciconst common = require('../common'); 31cb0ef41Sopenharmony_ciconst assert = require('assert'); 41cb0ef41Sopenharmony_ci 51cb0ef41Sopenharmony_ciprocess.once('uncaughtException', common.mustCall((err) => { 61cb0ef41Sopenharmony_ci common.expectsError({ 71cb0ef41Sopenharmony_ci message: 'Timeout Error' 81cb0ef41Sopenharmony_ci })(err); 91cb0ef41Sopenharmony_ci})); 101cb0ef41Sopenharmony_ci 111cb0ef41Sopenharmony_cilet called = false; 121cb0ef41Sopenharmony_ciconst t = setTimeout(() => { 131cb0ef41Sopenharmony_ci assert(!called); 141cb0ef41Sopenharmony_ci called = true; 151cb0ef41Sopenharmony_ci t.ref(); 161cb0ef41Sopenharmony_ci throw new Error('Timeout Error'); 171cb0ef41Sopenharmony_ci}, 1).unref(); 181cb0ef41Sopenharmony_ci 191cb0ef41Sopenharmony_cisetTimeout(common.mustCall(), 1); 20