Comments (2)
Testing on latest main
, I see
Fatal: 3:18: error: expected folded instruction
That location 3:18
is between the ref.cast
and the i32
. @tlively what does it mean by "folded instruction" that it expects there?
from binaryen.
This does still look like a bug with the new parser. The error message should say something about expecting a reftype. The current behavior is that it incorrectly accepts that the ref.cast
has no reftype immediate, then goes to parse the next instruction starting from i32 (local.get $a...
. That does not start with the expected opening paren for a folded instruction, so it produces the current error message.
from binaryen.
Related Issues (20)
- Use IRBuilder in the binary reader
- Support custom section annotations
- Support branch hinting
- Improvements enabled by new wat parser HOT 2
- Adding unsubtyping to O3
- wasm2js Error: abort on latest wasm-bindgen HOT 1
- wasm-split fails on small module with existing unused table
- wasm-opt(Windows): child not found in parent, UNREACHABLE executed HOT 11
- GTO problem with shared rec groups HOT 1
- Allow multiple patterns for noinline HOT 3
- Code signature invalid with macOS wasm-opt binary HOT 1
- possible segfault read in wasm::WATParser::Lexer::position HOT 3
- SegFault/out of bounds data in wasm::WasmBinaryReader::readNames HOT 1
- Missing optimization in Wasm for `x < 0 || x > constant` HOT 3
- CSE does not handle side effect of [array.copy] correctly HOT 1
- wasm-split confused about overlapping segments HOT 6
- wasm-opt assertion failed in wasm-type.cpp:720: 'type.isSingle()'
- wasm-opt assertion failed in wasm-type.cpp:1292: 'isStruct()'
- wasm-opt assertion failed in wasm-type.cpp:1015: 'isRef()'
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 binaryen.