1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-04 17:18:23 -05:00
denoland-deno/tests/specs/npm/workers
Yoshiya Hinosawa b6cdb31c05
fix(ext/node): fix prismjs compatibiliy in Web Worker (#25062)
PrismJS uses `WorkerGlobalScope` and `self` for detecting browser's Web
Worker context:
59e5a34713/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
2024-08-17 11:16:43 +09:00
..
__test__.jsonc fix: better handling of npm resolution occurring on workers (#24094) 2024-06-05 17:04:16 +02:00
main.out fix(ext/node): fix prismjs compatibiliy in Web Worker (#25062) 2024-08-17 11:16:43 +09:00
main.ts fix(ext/node): fix prismjs compatibiliy in Web Worker (#25062) 2024-08-17 11:16:43 +09:00
worker1.ts fix: better handling of npm resolution occurring on workers (#24094) 2024-06-05 17:04:16 +02:00
worker2.ts fix: better handling of npm resolution occurring on workers (#24094) 2024-06-05 17:04:16 +02:00
worker3.ts fix: better handling of npm resolution occurring on workers (#24094) 2024-06-05 17:04:16 +02:00
worker4.ts fix(ext/node): fix prismjs compatibiliy in Web Worker (#25062) 2024-08-17 11:16:43 +09:00