<!DOCTYPE html>
<title>Handling of instantiation errors, 6</title>

<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
    setup({allow_uncaught_exception: true});

    window.log = [];

    window.addEventListener("error", ev => log.push(ev.error));

    const test_load = async_test(
        "Test that ambiguous star exports lead to an instantiation error " +
        "and that the correct module is blamed.");
    // Concretely, instantiation-e