GithubHelp home page GithubHelp logo

Comments (7)

ericf avatar ericf commented on June 15, 2024

Related would be to access the global from the [[Realm]] slot via the declarative syntax. Something like:

import {Realm} from this module;

And then access the global object from the Realm. I'll have to check through the notes because I forgot if this module was deferred or not.

Also we might want to move this to https://bugs.ecmascript.org…

from loader.

caridy avatar caridy commented on June 15, 2024

@ericf ... from this module; is up in the air, definitely not in ES6.

from loader.

matthewp avatar matthewp commented on June 15, 2024

Also need a way to access the Loader that is loading your module.

from loader.

ericf avatar ericf commented on June 15, 2024

@caridy I wasn't suggesting this would be in ES6 since ES6 is locked; just pointing out the most recent syntax for ES7/2016 that was discussed in TC39 (likely in the notes somewhere).

from loader.

dherman avatar dherman commented on June 15, 2024

I'm not sure we want to expose the realm or the global via the module system. I suspect MarkM will have security concerns around it. I think it's likely better to do this through Reflect. Let's discuss with Mark at the next TC39 meeting.

from loader.

caridy avatar caridy commented on June 15, 2024

update: we need to reach out to @erights to settle this.

from loader.

caridy avatar caridy commented on June 15, 2024

Update:

from loader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.