From ffa5b068ce8ba9b10749bb6edb1d65a3e63a92c9 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 | 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 | 25 +++++++++++++++++++ test/parallel/test-worker-unsupported-path.js | 6 +++-- 7 files changed, 57 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) {