Skip to content

Data URLs can't have query params #54944

Closed as not planned
Closed as not planned
@avivkeller

Description

@avivkeller

Version

main

Platform

N/A

Subsystem

No response

What steps will reproduce the bug?

await import("data:text/javascript,console.log(import.meta.url)?query")

How often does it reproduce? Is there a required condition?

Everytime

What is the expected behavior? Why is that the expected behavior?

The Data URL should load correctly, printing the import.meta.url with the query

What do you see instead?

SyntaxError: Unexpected end of input

Additional information

I believe this is due to #54748 (CC @KhafraDev)

Metadata

Metadata

Assignees

No one assigned

    Labels

    fetchIssues and PRs related to the Fetch APIloadersIssues and PRs related to ES module loaders

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions