11cb0ef41Sopenharmony_ci'use strict'; 21cb0ef41Sopenharmony_ci// This tests that the internal flags in URL objects are consistent, as manifest 31cb0ef41Sopenharmony_ci// through assert libraries. 41cb0ef41Sopenharmony_ci// See https://github.com/nodejs/node/issues/24211 51cb0ef41Sopenharmony_ci 61cb0ef41Sopenharmony_ci// Tests below are not from WPT. 71cb0ef41Sopenharmony_ci 81cb0ef41Sopenharmony_cirequire('../common'); 91cb0ef41Sopenharmony_ciconst assert = require('assert'); 101cb0ef41Sopenharmony_ci 111cb0ef41Sopenharmony_ciassert.deepStrictEqual( 121cb0ef41Sopenharmony_ci new URL('./foo', 'https://example.com/'), 131cb0ef41Sopenharmony_ci new URL('https://example.com/foo') 141cb0ef41Sopenharmony_ci); 151cb0ef41Sopenharmony_ciassert.deepStrictEqual( 161cb0ef41Sopenharmony_ci new URL('./foo', 'https://user:pass@example.com/'), 171cb0ef41Sopenharmony_ci new URL('https://user:pass@example.com/foo') 181cb0ef41Sopenharmony_ci); 19