defineFetchExportFactoryWithEnvironmentAsync function

Never defineFetchExportFactoryWithEnvironmentAsync(
  1. String runtime,
  2. Future<Engine> engineFactory(
    1. Object? environment
    ), {
  3. required RoutedNodeCapabilities capabilities,
  4. String name = '__routed_fetch__',
})

VM stub for a lazy Fetch export that receives the host environment.

Implementation

Never defineFetchExportFactoryWithEnvironmentAsync(
  String runtime,
  Future<Engine> Function(Object? environment) engineFactory, {
  required RoutedNodeCapabilities capabilities,
  String name = '__routed_fetch__',
}) {
  throw UnsupportedError('$runtime Fetch exports require a JavaScript host.');
}