Open Bug 1688750 Opened 3 years ago Updated 2 months ago

[META] Module Expressions

Categories

(Core :: JavaScript Engine, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: yulia, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug, )

Details

(Keywords: dev-doc-needed, meta, Whiteboard: [DocArea=JS])

Summary from proposal:

The lack of inline modules in JavaScript has spawned some best practice that are really just workarounds and more often than not have negative performance implications. Sometimes, the lack of inline modules even form a hinderance to the adoption of APIs. A small sample of examples:

  • Workers (and Worklets!) are often cited to be unergonomic because of the need of a separate file. Both Houdini and classic Web Workers can benefit greatly from inline modules.
  • JavaScript cannot represent a “task” in a way that can be shared across agents, short of stringification.
  • Attempts at building a scheduler for the web (á la GCD) have been constrained to the main thread due JS’s current inability to share code across realm boundaries.

See proposal for more details

Severity: normal → N/A
Priority: -- → P3
Summary: Implement Module Blocks → [META] Module Blocks
Depends on: 1820594

This was renamed to Module Expressions.

Summary: [META] Module Blocks → [META] Module Expressions
You need to log in before you can comment on or make changes to this bug.