diff options
author | Konstantin Itskov <[email protected]> | 2019-09-15 20:00:51 -0400 |
---|---|---|
committer | Ayke <[email protected]> | 2019-09-16 13:32:31 +0200 |
commit | 61750be9aa9f4f7b87dbe69c40b55225fd4c9706 (patch) | |
tree | f4111315ac6531976b5960b2eb73a77e63d3a4ea /targets/wasm_exec.js | |
parent | efd9cf72bab54cb3c7272e7833ecca312b916c6d (diff) | |
download | tinygo-61750be9aa9f4f7b87dbe69c40b55225fd4c9706.tar.gz tinygo-61750be9aa9f4f7b87dbe69c40b55225fd4c9706.zip |
Add syscall/js.valueSetIndex support
Diffstat (limited to 'targets/wasm_exec.js')
-rw-r--r-- | targets/wasm_exec.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/targets/wasm_exec.js b/targets/wasm_exec.js index 951b085cc..3f2a6b5aa 100644 --- a/targets/wasm_exec.js +++ b/targets/wasm_exec.js @@ -245,9 +245,9 @@ }, // valueSetIndex(v ref, i int, x ref) - //"syscall/js.valueSetIndex": (sp) => { - // Reflect.set(loadValue(sp + 8), getInt64(sp + 16), loadValue(sp + 24)); - //}, + "syscall/js.valueSetIndex": (v_addr, i, x_addr) => { + Reflect.set(loadValue(v_addr), i, loadValue(x_addr)); + }, // func valueCall(v ref, m string, args []ref) (ref, bool) "syscall/js.valueCall": (ret_addr, v_addr, m_ptr, m_len, args_ptr, args_len, args_cap) => { |