2017-06-06 08:44:56 +08:00
|
|
|
// Flags: --experimental-modules
|
2018-03-17 19:45:22 +08:00
|
|
|
import '../common';
|
2017-06-06 08:44:56 +08:00
|
|
|
|
|
|
|
if (typeof arguments !== 'undefined') {
|
|
|
|
throw new Error('not an ESM');
|
|
|
|
}
|
|
|
|
if (typeof this !== 'undefined') {
|
|
|
|
throw new Error('not an ESM');
|
|
|
|
}
|
|
|
|
if (typeof exports !== 'undefined') {
|
|
|
|
throw new Error('not an ESM');
|
|
|
|
}
|
|
|
|
if (typeof require !== 'undefined') {
|
|
|
|
throw new Error('not an ESM');
|
|
|
|
}
|
|
|
|
if (typeof module !== 'undefined') {
|
|
|
|
throw new Error('not an ESM');
|
|
|
|
}
|
|
|
|
if (typeof __filename !== 'undefined') {
|
|
|
|
throw new Error('not an ESM');
|
|
|
|
}
|
|
|
|
if (typeof __dirname !== 'undefined') {
|
|
|
|
throw new Error('not an ESM');
|
|
|
|
}
|