Skip to content

handle undefined this.worker.stdio correctly #2

Description

@niieani

Not sure how exactly to reproduce, but I get this half way through a compilation:

uncaughtException TypeError: Invalid attempt to destructure non-iterable instance
    at /Users/bazyli.brzoska/Projects/p/node_modules/thread-loader/dist/WorkerPool.js:7:585
    at new PoolWorker (/Users/bazyli.brzoska/Projects/p/node_modules/thread-loader/dist/WorkerPool.js:49:25)
    at WorkerPool.distributeJob (/Users/bazyli.brzoska/Projects/p/node_modules/thread-loader/dist/WorkerPool.js:326:23)
    at /Users/bazyli.brzoska/Projects/p/node_modules/async/queue.js:10:5
    at process (/Users/bazyli.brzoska/Projects/p/node_modules/async/internal/queue.js:165:17)
    at Immediate._onImmediate (/Users/bazyli.brzoska/Projects/p/node_modules/async/internal/setImmediate.js:27:16)
    at tryOnImmediate (timers.js:762:5)
    at processImmediate [as _immediateCallback] (timers.js:733:5)

Using Node 8.2.0-rc.1 and latest versions of both webpack (3.1) and thread-loader.

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

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions