We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c626e4 commit f0b154eCopy full SHA for f0b154e
crates/wasm-interpreter/src/lib.rs
@@ -72,7 +72,7 @@ impl Interpreter {
72
// (the LLVM call stack, now the wasm stack). To handle that let's give
73
// our selves a little bit of memory and set the stack pointer (global
74
// 0) to the top.
75
- ret.mem = vec![0; 0x100];
+ ret.mem = vec![0; 0x400];
76
ret.sp = ret.mem.len() as i32;
77
78
// Figure out where the `__wbindgen_describe` imported function is, if
crates/wasm-interpreter/tests/smoke.rs
@@ -87,7 +87,8 @@ fn globals() {
87
(export "foo" (func $foo))
88
)
89
"#;
90
- interpret(wat, "foo", Some(&[256]));
+ // __wbindgen_describe is called with a global - in Frame.eval we assume all access to globals is the stack pointer
91
+ interpret(wat, "foo", Some(&[1024]));
92
}
93
94
#[test]
0 commit comments