xref: /third_party/node/test/es-module/test-esm-loader-cache-clearing.js
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/test/es-module/
11cb0ef41Sopenharmony_ci'use strict';
21cb0ef41Sopenharmony_cirequire('../common');
31cb0ef41Sopenharmony_ci
41cb0ef41Sopenharmony_ciconst { cache } = require;
51cb0ef41Sopenharmony_ci
61cb0ef41Sopenharmony_ciObject.keys(cache).forEach((key) => {
71cb0ef41Sopenharmony_ci  delete cache[key];
81cb0ef41Sopenharmony_ci});
91cb0ef41Sopenharmony_ci// Require the same module again triggers the crash
101cb0ef41Sopenharmony_cirequire('../common');
11

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