sql-js / sql-js/sql.js

Unable to connect db in IE 11 browser

Open
#239 8 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
13.7k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the IE 11 failure and inspecting the generated js/sql.js output around the legacy-browser assertion shown in the report. Trace how the build handles LEGACY_VM_SUPPORT and verify the intended browser build configuration; done means sql.js loads without the abort and can connect to the database in IE 11.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, wasm
Domain
databases, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.