Skip to content

Cannot importScripts from Web Worker #44

Description

@Castux

Is it possible to run Fengari from a Web Worker? Naively trying importScripts("fengari-web.js"); gives the following error:

fengari-web.js:1 Uncaught ReferenceError: window is not defined
    at fengari-web.js:1
    at worker.js:1

Since the library is minified, it's hard to know what's going on, although the source for fengari-web.js seems to have a section that detects if there is a document, which suggests it might work without one?

Activity

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