current commit
221027.12 · esm: protect ESM loader from prototype pollution
'use strict';

const { mustNotCall, mustCall } = require('../common');

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

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