2021-08-30 23:30:48 +02:00
|
|
|
import 'ses/lockdown';
|
|
|
|
import '../../app/scripts/lockdown-run';
|
2021-10-01 20:53:12 +02:00
|
|
|
import '../../app/scripts/lockdown-more';
|
2021-11-03 01:01:01 +01:00
|
|
|
import {
|
|
|
|
getGlobalProperties,
|
|
|
|
testIntrinsic,
|
|
|
|
} from '../helpers/protect-intrinsics-helpers';
|
2021-08-30 23:30:48 +02:00
|
|
|
|
|
|
|
describe('non-modifiable intrinsics', function () {
|
2021-11-03 01:01:01 +01:00
|
|
|
getGlobalProperties().forEach((propertyName) => {
|
2021-08-30 23:30:48 +02:00
|
|
|
it(`intrinsic globalThis["${propertyName}"]`, function () {
|
2021-11-03 01:01:01 +01:00
|
|
|
testIntrinsic(propertyName);
|
2021-08-30 23:30:48 +02:00
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|