| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 11ed1e6 commit 71a2fa2
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1422,8 +1422,7 @@ E('ERR_WORKER_PATH', (filename) => | |||
| 1422 | 1422 | 'The worker script or module filename must be an absolute path or a ' + | |
| 1423 | 1423 | 'relative path starting with \'./\' or \'../\'.' + | |
| 1424 | 1424 | (filename.startsWith('file://') ? | |
| 1425 | - ' If you want to pass a file:// URL, you must wrap it around `new URL`.' : | ||
| 1426 | - '' | ||
| 1425 | + ' Wrap file:// URLs with `new URL`.' : '' | ||
| 1427 | 1426 | ) + | |
| 1428 | 1427 | ` Received "${filename}"`, | |
| 1429 | 1428 | TypeError); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -31,12 +31,12 @@ const { Worker } = require('worker_threads'); | |||
| 31 | 31 | { | |
| 32 | 32 | assert.throws( | |
| 33 | 33 | () => { new Worker('file:///file_url'); }, | |
| 34 | - /If you want to pass a file:\/\/ URL, you must wrap it around `new URL`/ | ||
| 34 | + /Wrap file:\/\/ URLs with `new URL`/ | ||
| 35 | 35 | ); | |
| 36 | 36 | assert.throws( | |
| 37 | 37 | () => { new Worker('relative_no_dot'); }, | |
| 38 | 38 | // eslint-disable-next-line node-core/no-unescaped-regexp-dot | |
| 39 | - /^((?!If you want to pass a file:\/\/ URL, you must wrap it around `new URL`).)*$/s | ||
| 39 | + /^((?!Wrap file:\/\/ URLs with `new URL`).)*$/s | ||
| 40 | 40 | ); | |
| 41 | 41 | } | |
| 42 | 42 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments