You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
Something we could make clearer in Node spec by explicitly stating we are not using require.cache rather than implying it.
For Web throwing an error at runtime does not remove ESM from the Module Map. The EP does not mention require.cache since it is using its own cache, but we could be clearer that we are not using that & we are matching Web behavior on this.
Will update sometime this week with clearer wording.
// a.mjsimportassertfrom'assert';import('./b').catch(err=>{import('./c').then(()=>assert.fail('should not re-evaluate same module path'))});
// b.mjsimport'./c.mjs';
// c.mjs// this should *always* throw errors since it only evaluates onceif(!global.ok){global.ok=true;thrownewError;}
The text was updated successfully, but these errors were encountered:
Something we could make clearer in Node spec by explicitly stating we are not using
require.cache
rather than implying it.For Web throwing an error at runtime does not remove ESM from the Module Map. The EP does not mention
require.cache
since it is using its own cache, but we could be clearer that we are not using that & we are matching Web behavior on this.Will update sometime this week with clearer wording.
The text was updated successfully, but these errors were encountered: