Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples failing on Firefox #133

Open
nikolai-b opened this issue Mar 25, 2022 · 1 comment
Open

Examples failing on Firefox #133

nikolai-b opened this issue Mar 25, 2022 · 1 comment

Comments

@nikolai-b
Copy link

All the examples are failing to load with

Uncaught TypeError: Error resolving module specifier: assemblyscript/asc editor.html:324:20
asm.js type error: Disabled by debugger es-module-shims.js
OK: ^ TypeError module failure has been polyfilled es-module-shims.js:31:106
Uncaught SyntaxError: await is a reserved identifier 294d09ce-3ae3-4a21-b936-02b4331820ed:7:6094
asm.js type error: Disabled by lack of compiler support es-module-shims.js

I'm guessing the relevant code is:

  <!--<script async src="https://cdn.jsdelivr.net/npm/es-module-shims@1.5.1/dist/es-module-shims.js"></script>-->
  <script async src="./scripts/es-module-shims.js"></script><!-- TODO: upgrade to 1.5.2 w/ #276-->
  <script type="importmap">
    {
      "imports": {
        "assemblyscript": "https://cdn.jsdelivr.net/npm/assemblyscript/dist/assemblyscript.js",
        "assemblyscript/asc": "https://cdn.jsdelivr.net/npm/assemblyscript/dist/asc.js",
        "binaryen": "https://cdn.jsdelivr.net/npm/binaryen@106.0.0-nightly.20220320/index.js",
        "long": "https://cdn.jsdelivr.net/npm/long@5.2.0/index.js"
      },
      "scopes": {
        "https://cdn.jsdelivr.net/npm/assemblyscript/": {
          "fs": "./scripts/empty.js",
          "module": "./scripts/empty.js",
          "path": "./scripts/empty.js",
          "url": "./scripts/empty.js"
        }
      }
    }
  </script>
  <script type="module">
    import asc from "assemblyscript/asc";

Is the import module shim failing?

I'm on Firefox 78.15.0esr (64-bit)

@dcodeIO
Copy link
Member

dcodeIO commented Mar 25, 2022

Works in FF 98.0.2. Given

Uncaught SyntaxError: await is a reserved identifier 294d09ce-3ae3-4a21-b936-02b4331820ed:7:6094

could it be that there is no top-level await support in ESR yet? (Latest seems to be 91.7.1esr though)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants