Skip to content

How to get return code from main() function? #255

Closed
@Zxilly

Description

@Zxilly

I'd like to run some different wasm files in the browser. And I want to get the running time of wasm instance. For example, a callback when instance exit?

Node.js add a opetion called returnOnExit at nodejs/node#32101, so did deno at denoland/deno#8605

So i ask for this option for wasmer-js/wasi

I'd like to contribute on this, but i really confused that is this possible to implement, or it was controlled by V8 Engine?

Could you please give me some suggestion? @syrusakbary

image

I mean, got notified when call $__wasi_proc_exit

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions