Skip to content

Unable to connect db in IE 11 browser #239

Description

@sadashivm

Hello,
I'm getting console error in IE 11 browser. please find the attached screenshot.

error1
error2

Below console error showing in sql.js file

abort("Assertion failed: this is a legacy browser, build with LEGACY_VM_SUPPORT") at Error: 0
at jsStackTrace (http://127.0.0.1:8081/js/sql.js:3:13747)
at stackTrace (http://127.0.0.1:8081/js/sql.js:3:13882)
at abort (http://127.0.0.1:8081/js/sql.js:20:8436)
at assert (http://127.0.0.1:8081/js/sql.js:3:6512)
at Anonymous function (http://127.0.0.1:8081/js/sql.js:3:17850)
at Global code (http://127.0.0.1:8081/js/sql.js:2:1)
If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.

Activity

  1. mcfly3001 commented on Jun 6, 2018

    @mcfly3001

    Hi, I have the same issue when testing my site on IE 11. Is there a workaround, solution available?

  2. object71 commented on Sep 27, 2018

    @object71

    Hi, can this also work on IE?

  3. Thetiso commented on Jul 18, 2019

    @Thetiso

    sad to know it's not feasible on IE.

  4. aaaristo commented on Jul 21, 2019

    @aaaristo

    Would this work with wasm2js?

  5. aaaristo commented on Jul 27, 2019

    @aaaristo

    works adding -s LEGACY_VM_SUPPORT=1 to dist/sql-asm-debug.js

  6. yanli0303 commented on Jun 13, 2020

    @yanli0303

    @aaaristo Awesome, I built the sql-asm.js with both -s LEGACY_VM_SUPPORT=1 and -s ALLOW_MEMORY_GROWTH=1 and it works nicely in IE 11 32bit.

    diff --git a/Makefile b/Makefile
    index 14e0e71..17efa3d 100644
    --- a/Makefile
    +++ b/Makefile
    @@ -39,6 +39,8 @@ EMFLAGS = \
     
     EMFLAGS_ASM = \
            -s WASM=0
    +       -s LEGACY_VM_SUPPORT=1
    +       -s ALLOW_MEMORY_GROWTH=1
     
     EMFLAGS_ASM_MEMORY_GROWTH = \
            -s WASM=0 \
  7. kaizhu256 commented on Jun 13, 2020

    @kaizhu256
    Member

    can we simplify the distribution by merging sql-asm-memory-growth.js into sql-asm.js?

    i think the only reason for asm.js these days is legacy-support where performance doesn't matter.

  8. lovasoa commented on Jun 13, 2020

    @lovasoa
    Member

    Yes, I agree.

    @aaaristo Awesome, I built the sql-asm.js with both -s LEGACY_VM_SUPPORT=1 and -s ALLOW_MEMORY_GROWTH=1 and it works nicely in IE 11 32bit.

    diff --git a/Makefile b/Makefile
    index 14e0e71..17efa3d 100644
    --- a/Makefile
    +++ b/Makefile
    @@ -39,6 +39,8 @@ EMFLAGS = \
     
     EMFLAGS_ASM = \
            -s WASM=0
    +       -s LEGACY_VM_SUPPORT=1
    +       -s ALLOW_MEMORY_GROWTH=1
     
     EMFLAGS_ASM_MEMORY_GROWTH = \
            -s WASM=0 \

    We can merge that and remove asm-memory-growth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions