node/test/fixtures/es-module-shadow-realm/state-counter.mjs

5 lines
74 B
JavaScript

let counter = 0;
export const getCounter = () => {
return counter++;
};