This repository has been archived by the owner on Nov 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cannot request data if no raw request asked
- Loading branch information
Showing
6 changed files
with
55 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package testapp | ||
|
||
// A simple Owasm script with the following specification: | ||
// PREPARE: | ||
// DO NOTHING | ||
// EXECUTE: | ||
// CALL set_return_date with RETDATE "beeb" | ||
var Wasm3 []byte = wat2wasm([]byte(` | ||
(module | ||
(type $t0 (func)) | ||
(type $t1 (func (param i64 i64 i64 i64))) | ||
(type $t2 (func (param i64 i64))) | ||
(import "env" "ask_external_data" (func $ask_external_data (type $t1))) | ||
(import "env" "set_return_data" (func $set_return_data (type $t2))) | ||
(func $prepare (export "prepare") (type $t0)) | ||
(func $execute (export "execute") (type $t0) | ||
i32.const 1024 | ||
i64.extend_u/i32 | ||
i64.const 4 | ||
call $set_return_data) | ||
(table $T0 1 1 anyfunc) | ||
(memory $memory (export "memory") 17) | ||
(data (i32.const 1024) "beeb")) | ||
`)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters