mirror of https://github.com/nodejs/node.git
11 lines
282 B
JavaScript
11 lines
282 B
JavaScript
|
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());
|