xref: /third_party/node/test/es-module/test-esm-import-attributes-2.mjs
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/test/es-module/
11cb0ef41Sopenharmony_ciimport '../common/index.mjs';
21cb0ef41Sopenharmony_ciimport { strictEqual } from 'assert';
31cb0ef41Sopenharmony_ci
41cb0ef41Sopenharmony_ciimport secret0 from '../fixtures/experimental.json' with { type: 'json' };
51cb0ef41Sopenharmony_ciconst secret1 = await import('../fixtures/experimental.json', {
61cb0ef41Sopenharmony_ci  with: { type: 'json' },
71cb0ef41Sopenharmony_ci});
81cb0ef41Sopenharmony_ci
91cb0ef41Sopenharmony_cistrictEqual(secret0.ofLife, 42);
101cb0ef41Sopenharmony_cistrictEqual(secret1.default.ofLife, 42);
111cb0ef41Sopenharmony_cistrictEqual(secret1.default, secret0);
12

Indexes created Thu Nov 07 10:32:03 CST 2024