Skip to content

Commit 1a9e0fe

Browse files
jasnelldeadlypants1973
authored andcommitted
Document the workers no-importscripts compat flag (#12618)
* Document the workers no-importscripts compat flag Refs: cloudflare/workerd#1556 * Update content/workers/_partials/_platform-compatibility-dates/no-importscripts.md Co-authored-by: Kate Tungusova <[email protected]> --------- Co-authored-by: Kate Tungusova <[email protected]>
1 parent 9faf7d9 commit 1a9e0fe

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
_build:
3+
publishResources: false
4+
render: never
5+
list: never
6+
7+
name: "Suppress global `importScripts()`"
8+
sort_date: "2024-03-04"
9+
enable_date: "2024-03-04"
10+
enable_flag: "no_global_importscripts"
11+
disable_flag: "global_importscripts"
12+
---
13+
14+
Suppresses the global `importScripts()` function. This method was included in the Workers global scope but was marked explicitly as non-implemented. However, the presence of the function could cause issues with some libraries. This compatibility flag removes the function from the global scope.

0 commit comments

Comments
 (0)