Skip to content

Commit

Permalink
Document the workers no-importscripts compat flag (#12618)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
2 people authored and mchenco committed Mar 1, 2024
1 parent 9faf7d9 commit 1a9e0fe
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
_build:
publishResources: false
render: never
list: never

name: "Suppress global `importScripts()`"
sort_date: "2024-03-04"
enable_date: "2024-03-04"
enable_flag: "no_global_importscripts"
disable_flag: "global_importscripts"
---

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 comments on commit 1a9e0fe

Please sign in to comment.