Merge pull request #16291 from Snuffleupagus/issue-16289

Limit the `Path2D`-checks in the worker-thread to Node.js (PR 16238 follow-up, issue 16289)
This commit is contained in:
Jonas Jenwald 2023-04-14 21:26:12 +02:00 committed by GitHub
commit ab2773416b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,7 +134,7 @@ class WorkerMessageHandler {
// a non-translated/non-polyfilled build of the library, since that would
// quickly fail anyway because of missing functionality.
if (
typeof Path2D === "undefined" ||
(isNodeJS && typeof Path2D === "undefined") ||
typeof ReadableStream === "undefined"
) {
const partialMsg =