v8/test/mjsunit/harmony/shadowrealm-skip-1.mjs

8 lines
194 B
JavaScript
Raw Normal View History

export const foo = 'bar';
export const obj = {};
export const func = function () {
return globalThis.foobar;
};
// Generates side-effects to the globalThis.
globalThis.foobar = 'inner-scope';