Comments (4)
I don't think considerations here are really in scope for the wasm spec. Instead, each host gets to decide what specifiers mean. For web browsers, that's specified in the HTML Standard; Node will similarly make its own decisions. Those decisions apply across the entire module system, and are not in the scope of individual language specs.
from esm-integration.
Ok, that's right.
I think that we should still make a distinction here between importing:
- a function (its execution is safe and don't allow the access to the module)
- a Memory/Table (allows access to the module)
- as you said the host could control the loading of the remote resource but not its usage in wasm.
from esm-integration.
I don't think such a distinction should be made, or at least, should not be in browsers or Node.js. In both environments you can only import modules whose source text you can already read the entire contents of, so any access restrictions wasm would put in place are faulty.
from esm-integration.
Agreed with Domenic, this would be out of scope for this WG.
from esm-integration.
Related Issues (20)
- Wasm/ESM integration and additional start/main functions HOT 17
- (X)HTML import name suggestion HOT 6
- ESM isn't suited for importing objects containing non-JavaScript identifiers HOT 3
- Security concern when importing executable modules as non-executable data HOT 16
- Should WebAssembly be at the same "privilege level" as JS? HOT 8
- Integration with import assertions HOT 4
- Proposal: Higher Order ESM Integration HOT 19
- Incorrect behavior of function importing?
- What will it take for `<script type="module" src="foo.wasm">` to be useful? HOT 7
- Possible inconsistency in js<->wasm cycle example for value import
- CSP Support for ESM Integration HOT 2
- Extending Wasm JS API with module namespace reflection HOT 2
- Examples: why an error in the wasm<->JS cycle case for value exports? HOT 1
- Multiple imports of the same wasm file: same instance or different instances? HOT 7
- Tracking phase progress HOT 3
- Tracking progress of .wasm fetch HOT 1
- Should ESM integration provide Modules rather than Instances? HOT 10
- What happens when an async function is imported?
- function's result type without `return` HOT 1
- Does this proposal support `*` and `as` in wasm imports? HOT 5
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 esm-integration.