mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-02-06 06:55:07 +00:00
Update request.ts wasm_response_send signature (#2122)
Update wasm_response_send function signature to match api by returning bool instead of void (was causing assemblyscript example to break)
This commit is contained in:
parent
a2d4744a2b
commit
327b4a7f59
|
@ -7,7 +7,7 @@ import * as console from './console'
|
|||
import * as timer from './timer'
|
||||
|
||||
@external("env", "wasm_response_send")
|
||||
declare function wasm_response_send(buffer: ArrayBuffer, size: i32): void;
|
||||
declare function wasm_response_send(buffer: ArrayBuffer, size: i32): bool;
|
||||
|
||||
@external("env", "wasm_register_resource")
|
||||
declare function wasm_register_resource(url: ArrayBuffer): void;
|
||||
|
@ -492,4 +492,4 @@ export function on_response(buffer_offset: i32, size: i32): void {
|
|||
|
||||
trans.cb(resp);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user