Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Calling async API from node worker threads results in errors #21

@devongovett

Description

@devongovett

Calling e.g. swc.parse from inside a node worker thread results in errors like the following:

FATAL ERROR: HandleScope::HandleScope Entering the V8 API without proper locking in place

This is likely due to calling the callback on the wrong thread, or with the wrong napi environment. I'm not familiar with Rust so I'm not sure where to debug further, but that's been my experience in C++.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions