node/test/addons/esm/test-import.js
Chengzhong Wu d302cb3bb2
esm: add experimental support for addon modules
PR-URL: https://github.com/nodejs/node/pull/55844
Backport-PR-URL: https://github.com/nodejs/node/pull/59961
Fixes: https://github.com/nodejs/node/issues/40541
Fixes: https://github.com/nodejs/node/issues/55821
Reviewed-By: Guy Bedford <guybedford@gmail.com>
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Jacob Smith <jacob@frende.me>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2025-09-22 14:28:01 +00:00

7 lines
175 B
JavaScript

// Flags: --experimental-addon-modules
'use strict';
const common = require('../../common');
import('./test-esm.mjs')
.then((mod) => mod.run())
.then(common.mustCall());