Skip to content

ES6 export keys need to be sorted #2790

Open
@jplaisted

Description

@jplaisted

Per the spec, modules have an [[Exports]] slot that is sorted:

A List containing the String values of the exported names exposed as own properties of this object. The list is ordered as if an Array of those String values had been sorted using Array.prototype.sort using SortCompare as comparefn.

And enumerating over a module iterates over this list:

When the [[Enumerate]] internal method of a module namespace exotic object O is called the following steps are taken:

Let exports be the value of O’s [[Exports]] internal slot.
Return CreateListIterator(exports).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions