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

Add ECMAScript standard library #69

Open
arhadthedev opened this issue Apr 14, 2024 · 0 comments
Open

Add ECMAScript standard library #69

arhadthedev opened this issue Apr 14, 2024 · 0 comments
Labels
feature Addition of something new part: runtime Script interpretation and APIs

Comments

@arhadthedev
Copy link
Owner

arhadthedev commented Apr 14, 2024

Unlike runtime extensions from #64, standard library modules export not integrate(targetGlobalThis) but way lower-level integrate(globalEnvironmentRecord) inaccessible for the extensions.

Example of the function for ECMA-402 (internationalization API specification):

export function integrate(globalEnvironmentRecord) {
  const Intl = {
    Collator: function(locales = undefined, options = undefined) {
      // ...
    }
  };
  targetGlobalObject.Intl = Intl;
}
@arhadthedev arhadthedev added feature Addition of something new part: runtime Script interpretation and APIs labels Apr 14, 2024
@arhadthedev arhadthedev added this to the Integration MVP milestone Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Addition of something new part: runtime Script interpretation and APIs
Projects
None yet
Development

No branches or pull requests

1 participant