mirror of https://github.com/nodejs/node.git
9 lines
399 B
JavaScript
9 lines
399 B
JavaScript
// Flags: --experimental-modules --experimental-loader ./test/fixtures/es-module-loaders/missing-dynamic-instantiate-hook.mjs
|
|
import { expectsError } from '../common/index.mjs';
|
|
|
|
import('test').catch(expectsError({
|
|
code: 'ERR_MISSING_DYNAMIC_INSTANTIATE_HOOK',
|
|
message: 'The ES Module loader may not return a format of \'dynamic\' ' +
|
|
'when no dynamicInstantiate function was provided'
|
|
}));
|