mirror of
https://github.com/nodejs/node.git
synced 2025-05-21 14:23:55 +00:00

PR-URL: https://github.com/nodejs/node/pull/44741 Fixes: https://github.com/nodejs/node/issues/44650 Fixes: https://github.com/nodejs/node/issues/37472 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
8 lines
194 B
JavaScript
8 lines
194 B
JavaScript
export const foo = 'bar';
|
|
export const obj = {};
|
|
export const func = function () {
|
|
return globalThis.foobar;
|
|
};
|
|
// Generates side-effects to the globalThis.
|
|
globalThis.foobar = 'inner-scope';
|