summaryrefslogtreecommitdiff
path: root/test/es-module/test-esm-prototype-pollution.mjs
blob: 6ba1fd8d64025f6d0fde537563e0bff6b65613c1 (plain)
1
2
3
4
5
6
7
8
9
10
import { mustNotCall, mustCall } from '../common/index.mjs';

Object.defineProperties(Object.prototype, {
  then: {
    set: mustNotCall('set %Object.prototype%.then'),
    get: mustNotCall('get %Object.prototype%.then'),
  },
});

import('data:text/javascript,').then(mustCall());