Comments (2)
The typing rule for modules that you quote invokes a special rule for typing sequences of globals, which is defined here (or when you click on the turnstile). That updates the context incrementally, just like the interpreter does. This is different from iterating individual invocations as done for other entities.
So AFAICS there is no inconsistency between spec and interpreter, merely a bug in wat2wasm.
from gc.
Oh, the specification also updates the context in validating the sequence of globals. I missed that. Thank you for the comment!
from gc.
Related Issues (20)
- Type matching with recursive types HOT 8
- In the latest standard, ref.extern is gone, but its use still exists in test. HOT 3
- Type equivalence in modifiend spec HOT 1
- [spec] array.init_elem: bounds check correct? HOT 1
- Request for clarification: is this Wasm valid or not? HOT 2
- validation rule of `ref.is_null`, `ref.as_non_null` and `ref.cast` HOT 7
- Dynamically initializing a non mutable array HOT 4
- Does the combo of subtyping and unreachable code require actual type inference? HOT 41
- Question about the sub-typing rules HOT 15
- [js-api] Throw LinkError consistently
- How to reinterpret `(array f32)` to `(array u8)`? HOT 1
- [Question] About GC heap area and linear memory HOT 1
- Working with wit component HOT 4
- Array copy specification potential incorrect mutable assertion HOT 4
- Bounds check is possible wrong on array.copy/array.fill HOT 1
- Type of active element segments HOT 10
- Effects of optimized out instructions HOT 5
- Portability hazards of i31ref with non-native engines HOT 1
- Questions about multiple inheritance HOT 2
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 gc.