Giter VIP home page Giter VIP logo

Comments (9)

nrabinowitz avatar nrabinowitz commented on May 22, 2024

What version of the library are you using? This was an issue several versions ago, but should now be fixed (see #7). I don't see any references to UnhandledRejection in the current build.

from h3-js.

nullRefErr avatar nullRefErr commented on May 22, 2024

@nrabinowitz Hey, I came across the same issue a day ago. I inspect the built file and found out the code below. Looks like unhandledRejection is still listening.

Packge version: "h3-js": "^3.5.0"

    Module["arguments"] = process["argv"].slice(2);
    process["on"]("unhandledRejection", abort);
-------------------------------------------------------------
  function abort(what) {
    if (Module["onAbort"]) {
      Module["onAbort"](what);
    }

    if (what !== undefined) {
      out(what);
      err(what);
      what = JSON.stringify(what);
    } else {
      what = "";
    }

    ABORT = true;
    throw "abort(" + what + "). Build with -s ASSERTIONS=1 for more info.";
  }

  Module["abort"] = abort;

from h3-js.

erkbamyaci avatar erkbamyaci commented on May 22, 2024

@nrabinowitz, thanks for the quick response.
I am also using version 3.5.0. I checked to be sure and I guess this is the latest version of the package.

Do you have any idea why we face this? Or is there a way to overwrite it?

from h3-js.

nrabinowitz avatar nrabinowitz commented on May 22, 2024

Ok, I see it now (had the capitalization wrong). This is part of the generated Emscripten scaffolding code; my understanding was that we were removing it with the NODEJS_CATCH_EXIT=0 flag passed to Emscripten, but it's possible that either the flag has changed or is no longer being honored in the version of Emscripten we're using.

I will investigate and fix. In the meantime, if you are using h3-js in browser contexts, this part of the code should be removed in the dist/browser builds.

from h3-js.

nullRefErr avatar nullRefErr commented on May 22, 2024

@nrabinowitz thank you, I was using h3-js in a backend project but it is not a big deal right now. I will wait you to fix. Good luck

from h3-js.

erkbamyaci avatar erkbamyaci commented on May 22, 2024

@nrabinowitz thanks for the help. I will be waiting for the fix as well. Have a great day.

from h3-js.

nullRefErr avatar nullRefErr commented on May 22, 2024

@nrabinowitz any updates ?

from h3-js.

nrabinowitz avatar nrabinowitz commented on May 22, 2024

Looks like the issue is here: emscripten-core/emscripten#9028

The issue is open, but it looks like there's a flag now to remove the line. I'll update emscripten and see if this fixes it.

from h3-js.

nullRefErr avatar nullRefErr commented on May 22, 2024

@nrabinowitz Thanks

from h3-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.