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