11cb0ef41Sopenharmony_ci// Flags: --pending-deprecation 21cb0ef41Sopenharmony_ciimport { mustCall } from '../common/index.mjs'; 31cb0ef41Sopenharmony_ciimport assert from 'assert'; 41cb0ef41Sopenharmony_ci 51cb0ef41Sopenharmony_cilet curWarning = 0; 61cb0ef41Sopenharmony_ciconst expectedWarnings = [ 71cb0ef41Sopenharmony_ci 'Use of deprecated leading or trailing slash', 81cb0ef41Sopenharmony_ci 'Use of deprecated double slash', 91cb0ef41Sopenharmony_ci './/asdf.js', 101cb0ef41Sopenharmony_ci '".//internal/test.js"', 111cb0ef41Sopenharmony_ci '".//internal//test.js"', 121cb0ef41Sopenharmony_ci '"./////internal/////test.js"', 131cb0ef41Sopenharmony_ci '"./trailing-pattern-slash/"', 141cb0ef41Sopenharmony_ci '"./subpath/dir1/dir1.js"', 151cb0ef41Sopenharmony_ci '"./subpath//dir1/dir1.js"', 161cb0ef41Sopenharmony_ci './/asdf.js', 171cb0ef41Sopenharmony_ci '".//internal/test.js"', 181cb0ef41Sopenharmony_ci '".//internal//test.js"', 191cb0ef41Sopenharmony_ci '"./////internal/////test.js"', 201cb0ef41Sopenharmony_ci 'no_exports', 211cb0ef41Sopenharmony_ci 'default_index', 221cb0ef41Sopenharmony_ci]; 231cb0ef41Sopenharmony_ci 241cb0ef41Sopenharmony_ciprocess.addListener('warning', mustCall((warning) => { 251cb0ef41Sopenharmony_ci assert(warning.stack.includes(expectedWarnings[curWarning++]), warning.stack); 261cb0ef41Sopenharmony_ci}, expectedWarnings.length)); 271cb0ef41Sopenharmony_ci 281cb0ef41Sopenharmony_ciawait import('./test-esm-exports.mjs'); 29