diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2024-08-17 11:16:43 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-17 11:16:43 +0900 |
commit | b6cdb31c0591ffd4dd9fee7a44554f5d915ba58e (patch) | |
tree | b815eb1d3c847b1a57b04631c6e6dc246baaffaa /cli/tools/task.rs | |
parent | 2eeea0a1d2011567d3a41065d66802097366dc8c (diff) |
fix(ext/node): fix prismjs compatibiliy in Web Worker (#25062)
PrismJS uses `WorkerGlobalScope` and `self` for detecting browser's Web
Worker context:
https://github.com/PrismJS/prism/blob/59e5a3471377057de1f401ba38337aca27b80e03/prism.js#L11
Now the detection logic above is broken when it's imported from Deno's
Web Worker context because we only hide `self` (Prism assumes when
`WorkerGlobalScope` is available, `self` is also available).
This change fixes the above by also hiding `WorkerGlobalScope` global in
Node compat mode.
closes #25008
Diffstat (limited to 'cli/tools/task.rs')
0 files changed, 0 insertions, 0 deletions