From b73943e476e65ef5d9472abed87feb48cd5f48dc Mon Sep 17 00:00:00 2001 From: Antoine du HAMEL Date: Fri, 31 Jul 2020 19:35:58 +0200 Subject: [PATCH] workers: add support for data: URLs PR-URL: /~https://github.com/nodejs/node/pull/34584 Reviewed-By: Anna Henningsen Reviewed-By: James M Snell Reviewed-By: Bradley Farias Reviewed-By: Jan Krems --- doc/api/worker_threads.md | 13 +++++++++- 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 | 25 +++++++++++++++++++ test/parallel/test-worker-unsupported-path.js | 6 +++-- 7 files changed, 60 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 9b57d28a3e6dd2..b3562e44022a8d 100644 --- a/doc/api/worker_threads.md +++ b/doc/api/worker_threads.md @@ -621,6 +621,13 @@ if (isMainThread) {