diff --git a/src/lib/web-worker/worker-document.ts b/src/lib/web-worker/worker-document.ts index 6db5a18f..f05d4414 100644 --- a/src/lib/web-worker/worker-document.ts +++ b/src/lib/web-worker/worker-document.ts @@ -175,6 +175,12 @@ export const patchDocument = ( }, }, + scripts: { + get() { + return getter(this, ['scripts']); + }, + }, + implementation: { get() { return { diff --git a/tests/platform/window/index.html b/tests/platform/window/index.html index 52238eef..0609dbb4 100644 --- a/tests/platform/window/index.html +++ b/tests/platform/window/index.html @@ -769,6 +769,22 @@
+
+