mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
15 lines
438 B
JavaScript
15 lines
438 B
JavaScript
|
// Flags: --experimental-modules --loader ./test/fixtures/es-module-loaders/missing-dynamic-instantiate-hook.mjs
|
||
|
|
||
|
import {
|
||
|
crashOnUnhandledRejection,
|
||
|
expectsError
|
||
|
} from '../common';
|
||
|
|
||
|
crashOnUnhandledRejection();
|
||
|
|
||
|
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'
|
||
|
}));
|