canjs / can-zone

A context for tracking asynchronous activity in JavaScript applications.
https://v4.canjs.com/doc/can-zone.html
MIT License
92 stars 4 forks source link

Allow can-zone to run in Worker contexts #169

Closed bmomberger-bitovi closed 6 years ago

bmomberger-bitovi commented 6 years ago

Ignore trying to get event listeners from HTMLElement.prototype when in a Worker context (no window/document/elements) similar to when running in a Node context.

@matthewp should we return onmessage for the worker global context?