-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
Test case
luadec.wasm.txt
Trace
thread 'main' panicked at wasm-ast\src\factory.rs:647:18:
Unsupported instruction: TableGet { table: 1 }
stack backtrace:
0: rust_begin_unwind
at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library\std\src/panicking.rs:692:5
1: core::panicking::panic_fmt
at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library\core\src/panicking.rs:75:14
2: wasm_ast::factory::Factory::add_instruction
at C:\Users\user\Downloads\wabt-1.0.36-windows.tar\wabt-1.0.36\bin\Wasynth\wasm-ast\src\factory.rs:647:9
3: wasm_ast::factory::Factory::build_stat_list
at C:\Users\user\Downloads\wabt-1.0.36-windows.tar\wabt-1.0.36\bin\Wasynth\wasm-ast\src\factory.rs:657:5
4: wasm_ast::factory::Factory::create_indexed
at C:\Users\user\Downloads\wabt-1.0.36-windows.tar\wabt-1.0.36\bin\Wasynth\wasm-ast\src\factory.rs:252:14
5: codegen_luajit::translator::build_func_list::{{closure}}
at C:\Users\user\Downloads\wabt-1.0.36-windows.tar\wabt-1.0.36\bin\Wasynth\codegen\luajit\src\translator.rs:217:12
6: core::iter::adapters::map::map_fold::{{closure}}
at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688\library\core\src\iter\adapters/map.rs:88:28
7: <core::iter::adapters::enumerate::Enumerate<I> as core::iter::traits::iterator::Iterator>::fold::enumerate::{{closure}}
at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688\library\core\src\iter\adapters/enumerate.rs:107:27
8: <core::slice::iter::Iter<T> as core::iter::traits::iterator::Iterator>::fold
at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688\library\core\src\slice\iter/macros.rs:232:27
9: <core::iter::adapters::enumerate::Enumerate<I> as core::iter::traits::iterator::Iterator>::fold
at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688\library\core\src\iter\adapters/enumerate.rs:113:9
10: <core::iter::adapters::map::Map<I,F> as core::iter::traits::iterator::Iterator>::fold
at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688\library\core\src\iter\adapters/map.rs:128:9
11: core::iter::traits::iterator::Iterator::for_each
at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688\library\core\src\iter\traits/iterator.rs:800:9
12: alloc::vec::Vec<T,A>::extend_trusted
at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688\library\alloc\src\vec/mod.rs:3568:17
13: <alloc::vec::Vec<T,A> as alloc::vec::spec_extend::SpecExtend<T,I>>::spec_extend
at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688\library\alloc\src\vec/spec_extend.rs:29:9
14: <alloc::vec::Vec<T> as alloc::vec::spec_from_iter_nested::SpecFromIterNested<T,I>>::from_iter
at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688\library\alloc\src\vec/spec_from_iter_nested.rs:62:9
15: <alloc::vec::Vec<T> as alloc::vec::spec_from_iter::SpecFromIter<T,I>>::from_iter
at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688\library\alloc\src\vec/spec_from_iter.rs:34:9
16: <alloc::vec::Vec<T> as core::iter::traits::collect::FromIterator<T>>::from_iter
at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688\library\alloc\src\vec/mod.rs:3427:9
17: core::iter::traits::iterator::Iterator::collect
at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688\library\core\src\iter\traits/iterator.rs:1971:9
18: codegen_luajit::translator::build_func_list
at C:\Users\user\Downloads\wabt-1.0.36-windows.tar\wabt-1.0.36\bin\Wasynth\codegen\luajit\src\translator.rs:214:2
19: codegen_luajit::translator::from_module_typed
at C:\Users\user\Downloads\wabt-1.0.36-windows.tar\wabt-1.0.36\bin\Wasynth\codegen\luajit\src\translator.rs:323:18
20: codegen_luajit::translator::from_module_untyped
at C:\Users\user\Downloads\wabt-1.0.36-windows.tar\wabt-1.0.36\bin\Wasynth\codegen\luajit\src\translator.rs:341:2
21: wasm2luajit::main
at C:\Users\user\Downloads\wabt-1.0.36-windows.tar\wabt-1.0.36\bin\Wasynth\codegen\luajit\src\bin\wasm2luajit.rs:36:2
22: core::ops::function::FnOnce::call_once
at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688\library\core\src\ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Original source not available. I know it's written in Rust. I'm using this project to possibly get better results than the official wasm-decompile project.
Usage
wasm2luajit.exe luadec.wasm
wasm2luau.exe luadec.wasm
Metadata
Metadata
Assignees
Labels
No labels