Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty Worker accessing jsr #25562

Closed
notroid5 opened this issue Sep 10, 2024 · 1 comment
Closed

Empty Worker accessing jsr #25562

notroid5 opened this issue Sep 10, 2024 · 1 comment
Labels
working as designed this is working as intended

Comments

@notroid5
Copy link

Version: Deno 1.46.3

deno.json

{
  "tasks": {
    "dev": "deno run --allow-read=./ --watch main.ts"
  },
  "imports": {
    "@std/assert": "jsr:@std/assert@1"
  }
} 

main.ts

new Worker(import.meta.resolve("./worker.ts"), { type: "module" }) 

worker.ts

import {} from "@std/assert" 

Expected result: no access requests
Actual result:

Deno requests net access to "jsr.io:443".
Requested by `import()` API.

It does not seem to depend on what is cached or imported.

@lucacasonato
Copy link
Member

This is working as intended and documented: https://docs.deno.com/runtime/reference/web_platform_apis/#instantiation-permissions.

You may be interested in #8266

@lucacasonato lucacasonato added the working as designed this is working as intended label Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
working as designed this is working as intended
Projects
None yet
Development

No branches or pull requests

2 participants