Comments (7)
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.
@ericf ... from this module;
is up in the air, definitely not in ES6.
from loader.
Also need a way to access the Loader that is loading your module.
from loader.
@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.
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.
update: we need to reach out to @erights to settle this.
from loader.
Update:
- I can't be on Reflect.
- System.global: https://github.com/tc39/proposal-global proposal has reached stage 1, and might solve this.
from loader.
Related Issues (20)
- How are named exports passed to hooks when Loader.import is called? HOT 6
- It should be possible to synchronous retrieve a "loaded and ready" module's export object HOT 7
- Relative module URLs starting without "./" HOT 3
- Fetch response metadata HOT 1
- Importing JSON files? HOT 2
- Mention code of conduct in README HOT 1
- Looking back instead of looking forward? HOT 8
- PreEvaluate/PostEvaluate stages HOT 8
- Progress events HOT 3
- Execution hook
- [Discussion] Simplification of Loader HOT 45
- Per module-script tree information HOT 2
- Peeling out import() HOT 15
- Edge implementation status changed HOT 1
- Clarify Milestones/Roadmap HOT 1
- Β§ 2.3. Promises: "promises guide" should be a hyperlink
- Safely hooking the loader of an iframe HOT 2
- Idea: Add Header to Identify imported names HOT 4
- Make importing fail if URL has changed (for SPA, PJAX, and History API) HOT 1
- Is this spec living? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from loader.