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

Originals through built-in modules #19

Closed
littledan opened this issue Dec 5, 2018 · 7 comments
Closed

Originals through built-in modules #19

littledan opened this issue Dec 5, 2018 · 7 comments

Comments

@littledan
Copy link
Contributor

I've heard suggestions from @lukewagner and @mattijs that we could provide access to a separate, frozen copy of built-ins through modules. Has anyone written up this idea? Should we develop it further in this repo or another one?

@ljharb
Copy link

ljharb commented Dec 5, 2018

I think we'd still need a way for polyfills/shims to, in advance of that access and of the freezing, add in missing behavior, repair/replace broken behavior, and deny access to undesired things (annex b, high-resolution timers, etc).

@littledan
Copy link
Contributor Author

Agreed that we need some kinds of virtualization. I see this as working best with import-maps, which could enable these changes regardless of whether the approach in this repo or this issue are taken. Do you see any holes with that approach?

@ljharb
Copy link

ljharb commented Dec 5, 2018

If non-syntax things are always deniable/replaceable/patchable/virtualizable via import maps, that does seem like it might work.

@littledan
Copy link
Contributor Author

@ljharb Does the current import-maps proposal meet this requirement for you?

@ljharb
Copy link

ljharb commented Dec 6, 2018

I think so - it remains to be seen how it will interact with this proposal.

@mattijs
Copy link

mattijs commented Dec 6, 2018

I have not incorporated the idea as part of the standard library proposal, but I intend to.

@lukewagner
Copy link

💯 ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants