From 07202b99029b8dd1eb563fe639a75c1ac4fb616f Mon Sep 17 00:00:00 2001 From: Antoine du HAMEL Date: Fri, 31 Jul 2020 19:35:58 +0200 Subject: [PATCH 1/2] worker_threads: add support for data: URLs --- doc/api/worker_threads.md | 10 +++++++++- lib/internal/errors.js | 3 +++ lib/internal/main/worker_thread.js | 7 ++++++- lib/internal/process/execution.js | 2 +- lib/internal/worker.js | 11 +++++++++-- test/parallel/test-worker-data-url.js | 14 ++++++++++++++ test/parallel/test-worker-unsupported-path.js | 6 ++++-- 7 files changed, 46 insertions(+), 7 deletions(-) create mode 100644 test/parallel/test-worker-data-url.js diff --git a/doc/api/worker_threads.md b/doc/api/worker_threads.md index 1214d33ebf9636..04b0ff9b23461b 100644 --- a/doc/api/worker_threads.md +++ b/doc/api/worker_threads.md @@ -621,6 +621,10 @@ if (isMainThread) {