mirror of https://github.com/nodejs/node.git
10 lines
316 B
JavaScript
10 lines
316 B
JavaScript
// This fixture is used to test that --require preload modules are not enabled in the ShadowRealm.
|
|
|
|
'use strict';
|
|
const assert = require('assert');
|
|
|
|
assert.strictEqual(globalThis.preload, 42);
|
|
const realm = new ShadowRealm();
|
|
const value = realm.evaluate(`globalThis.preload`);
|
|
assert.strictEqual(value, undefined);
|