PR-URL: https://github.com/nodejs/node/pull/61228 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: René <contact.9a5d6388@renegade334.me.uk>
13 lines
355 B
JavaScript
13 lines
355 B
JavaScript
'use strict';
|
|
|
|
const common = require('../common');
|
|
|
|
|
|
const ArrayIteratorPrototype =
|
|
Object.getPrototypeOf(Array.prototype[Symbol.iterator]());
|
|
|
|
delete Array.prototype[Symbol.iterator];
|
|
delete ArrayIteratorPrototype.next;
|
|
|
|
const fixtures = require('../common/fixtures');
|
|
import(fixtures.fileURL('es-modules/test-esm-ok.mjs')).then(common.mustCall());
|