We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5b9d2b commit b41cf39Copy full SHA for b41cf39
greenlet.js
@@ -22,7 +22,8 @@ export default function greenlet(asyncFunction) {
22
d => {
23
postMessage([e.data[0], 0, d], [d].filter(x => (
24
(x instanceof ArrayBuffer) ||
25
- (x instanceof MessagePort)
+ (x instanceof MessagePort) ||
26
+ (self.ImageBitmap && x instanceof ImageBitmap)
27
)));
28
},
29
// error handler - callback(id, ERROR(1), error)
@@ -60,7 +61,7 @@ export default function greenlet(asyncFunction) {
60
61
worker.postMessage([currentId, args], args.filter(x => (
62
63
(x instanceof MessagePort) ||
- (createImageBitmap && x instanceof ImageBitmap)
64
+ (window.createImageBitmap && x instanceof ImageBitmap)
65
66
});
67
};
0 commit comments