summaryrefslogtreecommitdiff
path: root/test/es-module/test-esm-loader-missing-dynamic-instantiate-hook.mjs
blob: f2b37f7e8a4db69847482b26c481f21427d1722c (plain)
1
2
3
4
5
6
7
8
9
// Flags: --experimental-modules --loader ./test/fixtures/es-module-loaders/missing-dynamic-instantiate-hook.mjs

import { expectsError } from '../common';

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'
}));