11cb0ef41Sopenharmony_ci// Flags: --experimental-loader ./test/fixtures/es-module-loaders/loader-invalid-url.mjs 21cb0ef41Sopenharmony_ciimport { expectsError, mustCall } from '../common/index.mjs'; 31cb0ef41Sopenharmony_ciimport assert from 'assert'; 41cb0ef41Sopenharmony_ci 51cb0ef41Sopenharmony_ciimport('../fixtures/es-modules/test-esm-ok.mjs') 61cb0ef41Sopenharmony_ci.then(assert.fail, (error) => { 71cb0ef41Sopenharmony_ci expectsError({ code: 'ERR_INVALID_RETURN_PROPERTY_VALUE' })(error); 81cb0ef41Sopenharmony_ci assert.match(error.message, /loader-invalid-url\.mjs/); 91cb0ef41Sopenharmony_ci}) 101cb0ef41Sopenharmony_ci.then(mustCall()); 11